diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-09-01 01:20:39 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-09-01 01:20:39 +0100 |
commit | c0a0c7e502f2bc99185d79a485b965f63de7a203 (patch) | |
tree | 17301965510f1c70112f0b91cd598a33e1bda306 /Northstar.Client/mod/scripts/vscripts/ui/menu_private_match.nut | |
parent | 9a96d0bff56f1969c68bb52a2f33296095bdc67d (diff) | |
download | NorthstarMods-c0a0c7e502f2bc99185d79a485b965f63de7a203.tar.gz NorthstarMods-c0a0c7e502f2bc99185d79a485b965f63de7a203.zip |
match setting localisation
Diffstat (limited to 'Northstar.Client/mod/scripts/vscripts/ui/menu_private_match.nut')
-rw-r--r-- | Northstar.Client/mod/scripts/vscripts/ui/menu_private_match.nut | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Northstar.Client/mod/scripts/vscripts/ui/menu_private_match.nut b/Northstar.Client/mod/scripts/vscripts/ui/menu_private_match.nut index b1da22ee3..d203a6730 100644 --- a/Northstar.Client/mod/scripts/vscripts/ui/menu_private_match.nut +++ b/Northstar.Client/mod/scripts/vscripts/ui/menu_private_match.nut @@ -628,6 +628,8 @@ function UpdateLobby() } else { + bool shouldBreak = false + foreach ( string category in GetPrivateMatchSettingCategories() ) { foreach ( CustomMatchSettingContainer setting in GetPrivateMatchCustomSettingsForCategory( category ) ) @@ -635,18 +637,18 @@ function UpdateLobby() if ( setting.playlistVar == varName ) { if ( setting.isEnumSetting ) - { playlistOverridesDesc += Localize( setting.localizedName ) + ": `2" + setting.enumNames[ setting.enumValues.find( expect string ( GetCurrentPlaylistVar( varName ) ) ) ] + "`0\n" - } else playlistOverridesDesc += Localize( setting.localizedName ) + ": `2" + GetCurrentPlaylistVar( varName ) + "`0\n" - + + shouldBreak = true break } } + + if ( shouldBreak ) + break } - - // sorta temp: ideally wanna localise playlist var names in the future } } |