Advanced Menu System  1.0
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
UServerSlotWidget Class Reference

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...
 

Detailed Description

Server slot widget.

Constructor & Destructor Documentation

◆ UServerSlotWidget()

UServerSlotWidget::UServerSlotWidget ( const FObjectInitializer &  ObjectInitializer)

Member Function Documentation

◆ GetServerInfo()

FServerInfo UServerSlotWidget::GetServerInfo ( )

Returns Server Info.

Returns

◆ NativeConstruct()

void UServerSlotWidget::NativeConstruct ( )
overridevirtual

◆ SetIPAdress()

void UServerSlotWidget::SetIPAdress ( FString  IPAdress)

Sets the IP address value.

Parameters
IPAdress

◆ SetIPTextColor()

void UServerSlotWidget::SetIPTextColor ( FColor  Color)

Sets the ip address text color.

Parameters
Color

◆ SetIPTextFont()

void UServerSlotWidget::SetIPTextFont ( FSlateFontInfo  Font)

Sets the IP address text font.

Parameters
Font

◆ SetMaxUsersValue()

void UServerSlotWidget::SetMaxUsersValue ( int  Value)

◆ SetPing()

void UServerSlotWidget::SetPing ( int  PingValue)

Sets the current ping and updates the text variable.

Parameters
TextNew Ping

◆ SetPingMaterial()

void UServerSlotWidget::SetPingMaterial ( UMaterialInterface *  Material)

Set Ping Ico material.

Parameters
Material

◆ SetPingText()

void UServerSlotWidget::SetPingText ( FText  Text)

Sets the current ping(in FText) and updates the PingTextBlock text variable.

Parameters
Text

◆ SetPingTextColor()

void UServerSlotWidget::SetPingTextColor ( FColor  Color)

Sets the ping text color and updates the PingTextBlock color variable.

Parameters
Color

◆ SetPingTextFont()

void UServerSlotWidget::SetPingTextFont ( FSlateFontInfo  Font)

Sets the ping font.

Parameters
Font

◆ SetServerNameColor()

void UServerSlotWidget::SetServerNameColor ( FColor  Color)

Sets a new color to the server name and updates the TitleTextBlock color variable.

Parameters
ColorNew server name color

◆ SetServerNameText()

void UServerSlotWidget::SetServerNameText ( FText  Text)

Sets a new server name and updates the TitleTextBlock text variable.

Parameters
TextNew Server Name

◆ SetServerTextFont()

void UServerSlotWidget::SetServerTextFont ( FSlateFontInfo  Font)

Sets a new font to the server name and updates the TitleTextBlock font variable.

Parameters
FontNew server name font

◆ SetShowIp()

void UServerSlotWidget::SetShowIp ( bool  Show)

Set or hide ip address.

Parameters
Show

◆ SetShowPing()

void UServerSlotWidget::SetShowPing ( bool  Show)

Set or hide ping value.

Parameters
Show

◆ SetShowServerName()

void UServerSlotWidget::SetShowServerName ( bool  Show)

Show or hide server name.

Parameters
Show

◆ SetShowUsers()

void UServerSlotWidget::SetShowUsers ( bool  Show)

Set or hide users.

Parameters
Show

◆ SetUsePingIcoMaterial()

void UServerSlotWidget::SetUsePingIcoMaterial ( bool  Value)

Set to use ping icco material.

Parameters
Value

◆ SetUsers()

void UServerSlotWidget::SetUsers ( int  UsersNumber,
int  MaxUsersNumber 
)

Sets new users number. Used to change the displayed amount of users and updates the text variable.

Parameters
TextNew text amount of the users on the server

◆ SetUsersText()

void UServerSlotWidget::SetUsersText ( FText  Text)

Sets new users text. Used to change the displayed amount of users and updates the UsersTextBlock text variable.

Parameters
TextNew text amount of the users on the server

◆ SetUsersTextColor()

void UServerSlotWidget::SetUsersTextColor ( FColor  Color)

Sets a new color to the users text and updates the UsersTextBlock color variable.

Parameters
ColorNew color

◆ SetUsersTextFont()

void UServerSlotWidget::SetUsersTextFont ( FSlateFontInfo  Font)

Sets a new font to the users amout text and updates the UsersTextBlock font variable.

Parameters
FontNew Font

◆ SetUsersValue()

void UServerSlotWidget::SetUsersValue ( int  Value)

◆ SynchronizeProperties()

void UServerSlotWidget::SynchronizeProperties ( )
overridevirtual

◆ UpdateServerData()

void UServerSlotWidget::UpdateServerData ( FText  ServerName,
int  UsersNumber,
int  MaxUsersNumber,
int  PingValue,
FString  IPAdress,
FString  OtherData 
)

Update the server slot data.

Parameters
ServerNameServer Name
UsersNumberUsers Number
MaxUsersNumberMax Users Number
PingValuePing Value
IPAdressIP Adress
OtherDataOther Data to store

Member Data Documentation

◆ AdditionalData

FString UServerSlotWidget::AdditionalData

String variable. Used to store additional data.

◆ BadPingValue

float UServerSlotWidget::BadPingValue

Bad ping value.

◆ bShowIp

bool UServerSlotWidget::bShowIp

True if you want to see the IP address.

◆ bShowPing

bool UServerSlotWidget::bShowPing

True if you want to see the ping value.

◆ bShowServerName

bool UServerSlotWidget::bShowServerName

True if you want to see the server name.

◆ bShowUsers

bool UServerSlotWidget::bShowUsers

True if you want to see the users amount.

◆ bUsePingIcoMaterial

bool UServerSlotWidget::bUsePingIcoMaterial

Show ping icon?

◆ GoodPingValue

float UServerSlotWidget::GoodPingValue

Good ping value.

◆ IP

FString UServerSlotWidget::IP

IP string. Used to store IP address.

◆ IPAdressTextBlock

class UTextBlock* UServerSlotWidget::IPAdressTextBlock

◆ IPColor

FColor UServerSlotWidget::IPColor

IP text color

◆ IPTextFont

FSlateFontInfo UServerSlotWidget::IPTextFont

User text font

◆ JoinButton

class UButton* UServerSlotWidget::JoinButton

◆ MaxUsers

int UServerSlotWidget::MaxUsers

Max users amount.

◆ OnJoinClicked

FOnJoinClickedEvent UServerSlotWidget::OnJoinClicked

Called when the button is clicked

◆ OnJoinHovered

FOnJoinHoverEvent UServerSlotWidget::OnJoinHovered

◆ OnJoinPressed

FOnJoinPressedEvent UServerSlotWidget::OnJoinPressed

Called when the button is pressed

◆ OnJoinReleased

FOnJoinReleasedEvent UServerSlotWidget::OnJoinReleased

Called when the button is released

◆ OnJoinUnHovered

FOnJoinUnHoverEvent UServerSlotWidget::OnJoinUnHovered

◆ Ping

int UServerSlotWidget::Ping

Current ping amount.

◆ PingIco

class UImage* UServerSlotWidget::PingIco

Ping image.

◆ PingMaterial

UMaterialInterface* UServerSlotWidget::PingMaterial

Ping icon material

◆ PingMaterialInstance

UMaterialInstanceDynamic* UServerSlotWidget::PingMaterialInstance

Ping Icon Material instance

◆ PingTextBlock

class UTextBlock* UServerSlotWidget::PingTextBlock

Ping text block.

◆ PingTextColor

FColor UServerSlotWidget::PingTextColor

Ping text Color

◆ PingTextFont

FSlateFontInfo UServerSlotWidget::PingTextFont

Ping text font

◆ ServerNameColor

FColor UServerSlotWidget::ServerNameColor

Server Name Text Color

◆ ServerNameText

FText UServerSlotWidget::ServerNameText

Server Name

◆ ServerTextFont

FSlateFontInfo UServerSlotWidget::ServerTextFont

Server Name Text Font

◆ TitleTextBlock

class UTextBlock* UServerSlotWidget::TitleTextBlock

Server Name text block.

◆ Users

int UServerSlotWidget::Users

Current users amount.

◆ UsersColor

FColor UServerSlotWidget::UsersColor

User amount text color

◆ UsersText

FText UServerSlotWidget::UsersText

◆ UsersTextBlock

class UTextBlock* UServerSlotWidget::UsersTextBlock

Users amount on the server text block.

◆ UsersTextFont

FSlateFontInfo UServerSlotWidget::UsersTextFont

User text font