diff options
author | Emma Miler <27428383+emma-miler@users.noreply.github.com> | 2022-01-29 00:07:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 20:07:15 -0300 |
commit | e91e9bf83b67f6d7ee464c628a9a4b27c0ec6dba (patch) | |
tree | 08a01dff7c8d4033b14c22d3ab6fbc3ed74d69d2 /Northstar.Client/mod/scripts/vscripts/ui | |
parent | bb1f8b19c7e8a4369bd29196049c65e1330afe58 (diff) | |
download | NorthstarMods-e91e9bf83b67f6d7ee464c628a9a4b27c0ec6dba.tar.gz NorthstarMods-e91e9bf83b67f6d7ee464c628a9a4b27c0ec6dba.zip |
Optimized localization for server browser (#168)
Condensed and optimized the localisation of the player and server-count labels in the server browser. Hopefully the localization got encoded correctly.
Diffstat (limited to 'Northstar.Client/mod/scripts/vscripts/ui')
-rw-r--r-- | Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut index 194c0831..b7c8c44b 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut @@ -405,6 +405,8 @@ void function OnCloseServerBrowserMenu() void function OnServerBrowserMenuOpened() { + Hud_SetText( Hud_GetChild( file.menu, "InGamePlayerLabel" ), Localize("#INGAME_PLAYERS", "0") ) + Hud_SetText( Hud_GetChild( file.menu, "TotalServerLabel" ), Localize("#TOTAL_SERVERS", "0") ) UpdatePrivateMatchModesAndMaps() Hud_SetText( Hud_GetChild( file.menu, "Title" ), "#MENU_TITLE_SERVER_BROWSER" ) UI_SetPresentationType( ePresentationType.KNOWLEDGEBASE_MAIN ) @@ -720,10 +722,9 @@ void function FilterServerList() } } } + Hud_SetText( Hud_GetChild( file.menu, "InGamePlayerLabel" ), Localize("#INGAME_PLAYERS", string(totalPlayers)) ) + Hud_SetText( Hud_GetChild( file.menu, "TotalServerLabel" ), Localize("#TOTAL_SERVERS", string( NSGetServerCount()) ) ) } - - Hud_SetText( Hud_GetChild( file.menu, "InGamePlayerCount" ), string( totalPlayers ) ) - Hud_SetText( Hud_GetChild( file.menu, "TotalServerCount" ), string( NSGetServerCount() ) ) } void function CheckGamemode( serverStruct t ) |