![]() |
Advanced Menu System
1.0
|
Server slot widget. More...
#include <ServerSlotWidget.h>
Inheritance diagram for UServerSlotWidget:Public Member Functions | |
| UServerSlotWidget (const FObjectInitializer &ObjectInitializer) | |
| virtual void | SynchronizeProperties () override |
| virtual void | NativeConstruct () override |
| void | UpdateServerData (FText ServerName, int UsersNumber, int MaxUsersNumber, int PingValue, FString IPAdress, FString OtherData) |
| Update the server slot data. More... | |
| void | SetServerNameText (FText Text) |
| Sets a new server name and updates the TitleTextBlock text variable. More... | |
| void | SetServerNameColor (FColor Color) |
| Sets a new color to the server name and updates the TitleTextBlock color variable. More... | |
| void | SetServerTextFont (FSlateFontInfo Font) |
| Sets a new font to the server name and updates the TitleTextBlock font variable. More... | |
| void | SetUsers (int UsersNumber, int MaxUsersNumber) |
| Sets new users number. Used to change the displayed amount of users and updates the text variable. More... | |
| void | SetUsersText (FText Text) |
| Sets new users text. Used to change the displayed amount of users and updates the UsersTextBlock text variable. More... | |
| void | SetUsersTextColor (FColor Color) |
| Sets a new color to the users text and updates the UsersTextBlock color variable. More... | |
| void | SetUsersTextFont (FSlateFontInfo Font) |
| Sets a new font to the users amout text and updates the UsersTextBlock font variable. More... | |
| void | SetPing (int PingValue) |
| Sets the current ping and updates the text variable. More... | |
| void | SetUsersValue (int Value) |
| void | SetMaxUsersValue (int Value) |
| void | SetPingText (FText Text) |
| Sets the current ping(in FText) and updates the PingTextBlock text variable. More... | |
| void | SetPingTextColor (FColor Color) |
| Sets the ping text color and updates the PingTextBlock color variable. More... | |
| void | SetIPAdress (FString IPAdress) |
| Sets the IP address value. More... | |
| void | SetIPTextColor (FColor Color) |
| Sets the ip address text color. More... | |
| void | SetIPTextFont (FSlateFontInfo Font) |
| Sets the IP address text font. More... | |
| void | SetPingTextFont (FSlateFontInfo Font) |
| Sets the ping font. More... | |
| void | SetUsePingIcoMaterial (bool Value) |
| Set to use ping icco material. More... | |
| void | SetPingMaterial (UMaterialInterface *Material) |
| Set Ping Ico material. More... | |
| FServerInfo | GetServerInfo () |
| Returns Server Info. More... | |
| void | SetShowServerName (bool Show) |
| Show or hide server name. More... | |
| void | SetShowUsers (bool Show) |
| Set or hide users. More... | |
| void | SetShowPing (bool Show) |
| Set or hide ping value. More... | |
| void | SetShowIp (bool Show) |
| Set or hide ip address. More... | |
Public Attributes | |
| class UTextBlock * | TitleTextBlock |
| Server Name text block. More... | |
| class UTextBlock * | UsersTextBlock |
| Users amount on the server text block. More... | |
| class UTextBlock * | IPAdressTextBlock |
| class UTextBlock * | PingTextBlock |
| Ping text block. More... | |
| class UButton * | JoinButton |
| class UImage * | PingIco |
| Ping image. More... | |
| FOnJoinClickedEvent | OnJoinClicked |
| FOnJoinPressedEvent | OnJoinPressed |
| FOnJoinReleasedEvent | OnJoinReleased |
| FOnJoinHoverEvent | OnJoinHovered |
| FOnJoinUnHoverEvent | OnJoinUnHovered |
| bool | bShowServerName |
| True if you want to see the server name. More... | |
| bool | bShowUsers |
| True if you want to see the users amount. More... | |
| bool | bShowPing |
| True if you want to see the ping value. More... | |
| bool | bShowIp |
| True if you want to see the IP address. More... | |
| FText | ServerNameText |
| Server Name More... | |
| FColor | ServerNameColor |
| Server Name Text Color More... | |
| FSlateFontInfo | ServerTextFont |
| Server Name Text Font More... | |
| FText | UsersText |
| FColor | UsersColor |
| User amount text color More... | |
| FSlateFontInfo | UsersTextFont |
| User text font More... | |
| FColor | IPColor |
| IP text color More... | |
| FSlateFontInfo | IPTextFont |
| User text font More... | |
| int | Users |
| Current users amount. More... | |
| int | MaxUsers |
| Max users amount. More... | |
| int | Ping |
| Current ping amount. More... | |
| FColor | PingTextColor |
| Ping text Color More... | |
| FSlateFontInfo | PingTextFont |
| Ping text font More... | |
| float | GoodPingValue |
| Good ping value. More... | |
| float | BadPingValue |
| Bad ping value. More... | |
| bool | bUsePingIcoMaterial |
| Show ping icon? More... | |
| UMaterialInterface * | PingMaterial |
| Ping icon material More... | |
| UMaterialInstanceDynamic * | PingMaterialInstance |
| Ping Icon Material instance More... | |
| FString | IP |
| IP string. Used to store IP address. More... | |
| FString | AdditionalData |
| String variable. Used to store additional data. More... | |
Server slot widget.
| UServerSlotWidget::UServerSlotWidget | ( | const FObjectInitializer & | ObjectInitializer | ) |
| FServerInfo UServerSlotWidget::GetServerInfo | ( | ) |
Returns Server Info.
|
overridevirtual |
| void UServerSlotWidget::SetIPAdress | ( | FString | IPAdress | ) |
Sets the IP address value.
| IPAdress |
| void UServerSlotWidget::SetIPTextColor | ( | FColor | Color | ) |
Sets the ip address text color.
| Color |
| void UServerSlotWidget::SetIPTextFont | ( | FSlateFontInfo | Font | ) |
Sets the IP address text font.
| Font |
| void UServerSlotWidget::SetMaxUsersValue | ( | int | Value | ) |
| void UServerSlotWidget::SetPing | ( | int | PingValue | ) |
Sets the current ping and updates the text variable.
| Text | New Ping |
| void UServerSlotWidget::SetPingMaterial | ( | UMaterialInterface * | Material | ) |
Set Ping Ico material.
| Material |
| void UServerSlotWidget::SetPingText | ( | FText | Text | ) |
Sets the current ping(in FText) and updates the PingTextBlock text variable.
| Text |
| void UServerSlotWidget::SetPingTextColor | ( | FColor | Color | ) |
Sets the ping text color and updates the PingTextBlock color variable.
| Color |
| void UServerSlotWidget::SetPingTextFont | ( | FSlateFontInfo | Font | ) |
Sets the ping font.
| Font |
| void UServerSlotWidget::SetServerNameColor | ( | FColor | Color | ) |
Sets a new color to the server name and updates the TitleTextBlock color variable.
| Color | New server name color |
| void UServerSlotWidget::SetServerNameText | ( | FText | Text | ) |
Sets a new server name and updates the TitleTextBlock text variable.
| Text | New Server Name |
| void UServerSlotWidget::SetServerTextFont | ( | FSlateFontInfo | Font | ) |
Sets a new font to the server name and updates the TitleTextBlock font variable.
| Font | New server name font |
| void UServerSlotWidget::SetShowIp | ( | bool | Show | ) |
Set or hide ip address.
| Show |
| void UServerSlotWidget::SetShowPing | ( | bool | Show | ) |
Set or hide ping value.
| Show |
| void UServerSlotWidget::SetShowServerName | ( | bool | Show | ) |
Show or hide server name.
| Show |
| void UServerSlotWidget::SetShowUsers | ( | bool | Show | ) |
Set or hide users.
| Show |
| void UServerSlotWidget::SetUsePingIcoMaterial | ( | bool | Value | ) |
Set to use ping icco material.
| Value |
| void UServerSlotWidget::SetUsers | ( | int | UsersNumber, |
| int | MaxUsersNumber | ||
| ) |
Sets new users number. Used to change the displayed amount of users and updates the text variable.
| Text | New text amount of the users on the server |
| void UServerSlotWidget::SetUsersText | ( | FText | Text | ) |
Sets new users text. Used to change the displayed amount of users and updates the UsersTextBlock text variable.
| Text | New text amount of the users on the server |
| void UServerSlotWidget::SetUsersTextColor | ( | FColor | Color | ) |
Sets a new color to the users text and updates the UsersTextBlock color variable.
| Color | New color |
| void UServerSlotWidget::SetUsersTextFont | ( | FSlateFontInfo | Font | ) |
Sets a new font to the users amout text and updates the UsersTextBlock font variable.
| Font | New Font |
| void UServerSlotWidget::SetUsersValue | ( | int | Value | ) |
|
overridevirtual |
| void UServerSlotWidget::UpdateServerData | ( | FText | ServerName, |
| int | UsersNumber, | ||
| int | MaxUsersNumber, | ||
| int | PingValue, | ||
| FString | IPAdress, | ||
| FString | OtherData | ||
| ) |
Update the server slot data.
| ServerName | Server Name |
| UsersNumber | Users Number |
| MaxUsersNumber | Max Users Number |
| PingValue | Ping Value |
| IPAdress | IP Adress |
| OtherData | Other Data to store |
| FString UServerSlotWidget::AdditionalData |
String variable. Used to store additional data.
| float UServerSlotWidget::BadPingValue |
Bad ping value.
| bool UServerSlotWidget::bShowIp |
True if you want to see the IP address.
| bool UServerSlotWidget::bShowPing |
True if you want to see the ping value.
| bool UServerSlotWidget::bShowServerName |
True if you want to see the server name.
| bool UServerSlotWidget::bShowUsers |
True if you want to see the users amount.
| bool UServerSlotWidget::bUsePingIcoMaterial |
Show ping icon?
| float UServerSlotWidget::GoodPingValue |
Good ping value.
| FString UServerSlotWidget::IP |
IP string. Used to store IP address.
| class UTextBlock* UServerSlotWidget::IPAdressTextBlock |
| FColor UServerSlotWidget::IPColor |
IP text color
| FSlateFontInfo UServerSlotWidget::IPTextFont |
User text font
| class UButton* UServerSlotWidget::JoinButton |
| int UServerSlotWidget::MaxUsers |
Max users amount.
| FOnJoinClickedEvent UServerSlotWidget::OnJoinClicked |
Called when the button is clicked
| FOnJoinHoverEvent UServerSlotWidget::OnJoinHovered |
| FOnJoinPressedEvent UServerSlotWidget::OnJoinPressed |
Called when the button is pressed
| FOnJoinReleasedEvent UServerSlotWidget::OnJoinReleased |
Called when the button is released
| FOnJoinUnHoverEvent UServerSlotWidget::OnJoinUnHovered |
| int UServerSlotWidget::Ping |
Current ping amount.
| class UImage* UServerSlotWidget::PingIco |
Ping image.
| UMaterialInterface* UServerSlotWidget::PingMaterial |
Ping icon material
| UMaterialInstanceDynamic* UServerSlotWidget::PingMaterialInstance |
Ping Icon Material instance
| class UTextBlock* UServerSlotWidget::PingTextBlock |
Ping text block.
| FColor UServerSlotWidget::PingTextColor |
Ping text Color
| FSlateFontInfo UServerSlotWidget::PingTextFont |
Ping text font
| FColor UServerSlotWidget::ServerNameColor |
Server Name Text Color
| FText UServerSlotWidget::ServerNameText |
Server Name
| FSlateFontInfo UServerSlotWidget::ServerTextFont |
Server Name Text Font
| class UTextBlock* UServerSlotWidget::TitleTextBlock |
Server Name text block.
| int UServerSlotWidget::Users |
Current users amount.
| FColor UServerSlotWidget::UsersColor |
User amount text color
| FText UServerSlotWidget::UsersText |
| class UTextBlock* UServerSlotWidget::UsersTextBlock |
Users amount on the server text block.
| FSlateFontInfo UServerSlotWidget::UsersTextFont |
User text font