1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-11 23:57:59 -05:00

Change ZMUI_ZCLASSIC localized string to ZMUI_ZCLASSIC_GAMEMODE

Sometimes does not show overridden localized string on menu right away
This commit is contained in:
Jbleezy
2023-12-27 21:24:34 -08:00
parent 22572692d0
commit 3fffb47e34
2 changed files with 5 additions and 5 deletions

View File

@ -4,10 +4,10 @@ FILENOTES ""
// UI // UI
REFERENCE ZMUI_ZCLASSIC REFERENCE ZMUI_ZCLASSIC_GAMEMODE
LANG_ENGLISH "Classic" LANG_ENGLISH "Classic"
REFERENCE ZMUI_ZCLASSIC_CAPS REFERENCE ZMUI_ZCLASSIC_GAMEMODE_CAPS
LANG_ENGLISH "CLASSIC" LANG_ENGLISH "CLASSIC"
REFERENCE ZMUI_ZGRIEF_PRO REFERENCE ZMUI_ZGRIEF_PRO

View File

@ -3,7 +3,7 @@ require( "T6.Menus.PopupMenus" )
require( "T6.ListBox" ) require( "T6.ListBox" )
local GameModes = { local GameModes = {
"ZMUI_ZCLASSIC_CAPS", "ZMUI_ZCLASSIC_GAMEMODE_CAPS",
"ZMUI_ZSTANDARD_CAPS", "ZMUI_ZSTANDARD_CAPS",
"ZMUI_ZGRIEF_CAPS", "ZMUI_ZGRIEF_CAPS",
"ZMUI_ZSNR_CAPS", "ZMUI_ZSNR_CAPS",
@ -50,7 +50,7 @@ local function gameModeListSelectionClickedEventHandler( self, event )
local gameMode = GameModes[focusedIndex] local gameMode = GameModes[focusedIndex]
if gameMode == "ZMUI_ZCLASSIC_CAPS" then if gameMode == "ZMUI_ZCLASSIC_GAMEMODE_CAPS" then
Engine.SetDvar("ui_zm_gamemodegroup", "zclassic") Engine.SetDvar("ui_zm_gamemodegroup", "zclassic")
Engine.SetDvar("ui_gametype", "zclassic") Engine.SetDvar("ui_gametype", "zclassic")
elseif gameMode == "ZMUI_ZSTANDARD_CAPS" then elseif gameMode == "ZMUI_ZSTANDARD_CAPS" then
@ -80,7 +80,7 @@ local function gameModeListSelectionClickedEventHandler( self, event )
-- TODO: set dvars when game mode is added -- TODO: set dvars when game mode is added
end end
if gameMode == "ZMUI_ZCLASSIC_CAPS" then if gameMode == "ZMUI_ZCLASSIC_GAMEMODE_CAPS" then
self:openMenu("SelectMapListZM", self.controller) self:openMenu("SelectMapListZM", self.controller)
else else
self:openMenu("SelectLocationListZM", self.controller) self:openMenu("SelectLocationListZM", self.controller)