From e91e9bf83b67f6d7ee464c628a9a4b27c0ec6dba Mon Sep 17 00:00:00 2001 From: Emma Miler <27428383+emma-miler@users.noreply.github.com> Date: Sat, 29 Jan 2022 00:07:15 +0100 Subject: 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. --- Northstar.Client/mod/scripts/vscripts/ui/menu_ns_serverbrowser.nut | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Northstar.Client/mod/scripts/vscripts/ui') 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 ) -- cgit v1.2.3