![]() |
Advanced Menu System
1.0
|
Server browser movable window widget. More...
#include <ServerBrowserWindowWidget.h>
Inheritance diagram for UServerBrowserWindowWidget:Public Member Functions | |
| UServerBrowserWindowWidget (const FObjectInitializer &ObjectInitializer) | |
| virtual void | NativeConstruct () override |
| virtual void | SynchronizeProperties () override |
| void | AddExampleServers () |
| Adds example servers More... | |
| void | AddServer (FText ServerName, int UsersNumber, int MaxUsersNumber, int Ping, FString IPAdress, FString OtherData) |
| Add Server to the scroll box. More... | |
| void | UpdateServerByName (FString ServerName, int UsersNumber, int MaxUsersNumber, int Ping, FString IPAdress, FString OtherData, FText NewServerName, bool UpdateName=false) |
| Updates the server by name. More... | |
| void | RemoveServerByName (FString ServerName) |
| Remove sever by name. More... | |
| void | RemoveServerByIndex (int Index) |
| Remove server by index from servers widgets. More... | |
| bool | GetServerIndexByName (FString ServerName, int &Index) |
| Searches server index by name. More... | |
| FORCEINLINE TArray< UServerSlotWidget * > | GetServerSlotWidgetsArray () const |
| void | SetShowServerName (bool Show) |
| void | SetShowUsers (bool Show) |
| void | SetShowPing (bool Show) |
| void | SetShowIp (bool Show) |
| void | SetUsePingIco (bool Value) |
Public Member Functions inherited from UMovableWindowWidget | |
| UMovableWindowWidget (const FObjectInitializer &ObjectInitializer) | |
| virtual void | NativeConstruct () override |
| virtual void | SynchronizeProperties () override |
| virtual void | PostLoad () override |
| virtual void | NativeTick (const FGeometry &MyGeometry, float InDeltaTime) |
| void | DoOnDrag () |
| void | DoOnReleasedDrag () |
| void | UpdateWindowLocation () |
| void | UpdateWindowLocationStop () |
| void | SetWindowTitleText (FText Text) |
| void | SetWindowTitleTextColor (FColor Color) |
| void | SetWindowTitleTextFont (FSlateFontInfo Font) |
| void | UpdateWindowText () |
Public Attributes | |
| class UButton * | CloseButton |
| Close window button. More... | |
| UScrollBox * | ScrollBox |
| Scroll box to which servers are added. More... | |
| TSubclassOf< UServerSlotWidget > | ServerSlotClass |
| Server slot class. More... | |
| bool | bAddExampleServersOnStart |
| Set to true if you want to add test servers. More... | |
| TArray< UServerSlotWidget * > | ServersWidgets |
| Server slot widgets. More... | |
| bool | bShowServerName |
| Set to true if you want to show server name. More... | |
| bool | bShowUsers |
| Set to true to show users. More... | |
| bool | bShowPing |
| Set to true if you want to show ping. More... | |
| bool | bShowIp |
| Set to true if you want to show IP. More... | |
| bool | bUsePingIco |
| Set to true if you want to show ping icon. More... | |
| FOnCloseClickedEvent | OnCloseClicked |
| FOnClosePressedEvent | OnClosePressed |
| FOnCloseReleasedEvent | OnCloseReleased |
| FOnCloseHoverEvent | OnCloseHovered |
| FOnCloseUnHoverEvent | OnCloseUnHovered |
Public Attributes inherited from UMovableWindowWidget | |
| class UMovableWindowHeaderWidget * | HeaderWidget |
| UCanvasPanel * | WindowCanvasPanel |
| FText | WindowTitleText |
| FColor | WindowTitleTextColor |
| FSlateFontInfo | WindowTitleTextFont |
Server browser movable window widget.
| UServerBrowserWindowWidget::UServerBrowserWindowWidget | ( | const FObjectInitializer & | ObjectInitializer | ) |
| void UServerBrowserWindowWidget::AddExampleServers | ( | ) |
Adds example servers
| void UServerBrowserWindowWidget::AddServer | ( | FText | ServerName, |
| int | UsersNumber, | ||
| int | MaxUsersNumber, | ||
| int | Ping, | ||
| FString | IPAdress, | ||
| FString | OtherData | ||
| ) |
Add Server to the scroll box.
| ServerName | Name of the server |
| UsersNumber | Current amount of the users |
| MaxUsersNumber | Max Amount of the users |
| Ping | Current ping value |
| IPAdress | Server IP address |
| OtherData | Other data to store |
| bool UServerBrowserWindowWidget::GetServerIndexByName | ( | FString | ServerName, |
| int & | Index | ||
| ) |
Searches server index by name.
| ServerName | Name of the server |
| Index |
|
inline |
|
overridevirtual |
Reimplemented from UMovableWindowWidget.
| void UServerBrowserWindowWidget::RemoveServerByIndex | ( | int | Index | ) |
Remove server by index from servers widgets.
| Index |
| void UServerBrowserWindowWidget::RemoveServerByName | ( | FString | ServerName | ) |
Remove sever by name.
| ServerName | Name of the server |
| void UServerBrowserWindowWidget::SetShowIp | ( | bool | Show | ) |
| void UServerBrowserWindowWidget::SetShowPing | ( | bool | Show | ) |
| void UServerBrowserWindowWidget::SetShowServerName | ( | bool | Show | ) |
| void UServerBrowserWindowWidget::SetShowUsers | ( | bool | Show | ) |
| void UServerBrowserWindowWidget::SetUsePingIco | ( | bool | Value | ) |
|
overridevirtual |
Reimplemented from UMovableWindowWidget.
| void UServerBrowserWindowWidget::UpdateServerByName | ( | FString | ServerName, |
| int | UsersNumber, | ||
| int | MaxUsersNumber, | ||
| int | Ping, | ||
| FString | IPAdress, | ||
| FString | OtherData, | ||
| FText | NewServerName, | ||
| bool | UpdateName = false |
||
| ) |
Updates the server by name.
| ServerName | Name of the server |
| UsersNumber | Current amount of the users |
| MaxUsersNumber | Max Amount of the users |
| Ping | Current ping value |
| IPAdress | Server IP address |
| OtherData | Other data to store |
| NewServerName | New server name |
| UpdateName | Update name |
| bool UServerBrowserWindowWidget::bAddExampleServersOnStart |
Set to true if you want to add test servers.
| bool UServerBrowserWindowWidget::bShowIp |
Set to true if you want to show IP.
| bool UServerBrowserWindowWidget::bShowPing |
Set to true if you want to show ping.
| bool UServerBrowserWindowWidget::bShowServerName |
Set to true if you want to show server name.
| bool UServerBrowserWindowWidget::bShowUsers |
Set to true to show users.
| bool UServerBrowserWindowWidget::bUsePingIco |
Set to true if you want to show ping icon.
| class UButton* UServerBrowserWindowWidget::CloseButton |
Close window button.
| FOnCloseClickedEvent UServerBrowserWindowWidget::OnCloseClicked |
Called when the button is clicked
| FOnCloseHoverEvent UServerBrowserWindowWidget::OnCloseHovered |
Called when the button is hovered
| FOnClosePressedEvent UServerBrowserWindowWidget::OnClosePressed |
Called when the button is pressed
| FOnCloseReleasedEvent UServerBrowserWindowWidget::OnCloseReleased |
Called when the button is released
| FOnCloseUnHoverEvent UServerBrowserWindowWidget::OnCloseUnHovered |
Called when the button is unhovered
| UScrollBox* UServerBrowserWindowWidget::ScrollBox |
Scroll box to which servers are added.
| TSubclassOf<UServerSlotWidget> UServerBrowserWindowWidget::ServerSlotClass |
Server slot class.
| TArray<UServerSlotWidget*> UServerBrowserWindowWidget::ServersWidgets |
Server slot widgets.