From 4c20805d75b9098c3bea4be6d06f32fa89b9b3ab Mon Sep 17 00:00:00 2001 From: JappaWakka Date: Sun, 23 Mar 2025 16:03:58 +0100 Subject: [PATCH] Reload the tokens a little more often... in the main menu so that the correct location name immediately shows up on gamemode saves. --- P3D/Screens/MainMenu/PressStartScreen.vb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/P3D/Screens/MainMenu/PressStartScreen.vb b/P3D/Screens/MainMenu/PressStartScreen.vb index bd27133bf..d1de9c2d1 100644 --- a/P3D/Screens/MainMenu/PressStartScreen.vb +++ b/P3D/Screens/MainMenu/PressStartScreen.vb @@ -394,6 +394,7 @@ Public Class NewMainMenuScreen Else GameModeManager.SetGameModePointer("Kolben") End If + Localization.ReloadGameModeTokens() _menuTexture = TextureManager.GetTexture("GUI\Menus\MainMenu") _oldMenuTexture = TextureManager.GetTexture("GUI\Menus\Menu") @@ -510,6 +511,7 @@ Public Class NewMainMenuScreen If _MainProfiles(_selectedProfile)._gameModeExists Then GameModeManager.SetGameModePointer(_MainProfiles(_selectedProfile)._gameMode) End If + Localization.ReloadGameModeTokens() _menuTexture = TextureManager.GetTexture("GUI\Menus\MainMenu") _oldMenuTexture = TextureManager.GetTexture("GUI\Menus\Menu") End If @@ -521,6 +523,7 @@ Public Class NewMainMenuScreen If _MainProfiles(_selectedProfile)._gameModeExists Then GameModeManager.SetGameModePointer(_MainProfiles(_selectedProfile)._gameMode) End If + Localization.ReloadGameModeTokens() _menuTexture = TextureManager.GetTexture("GUI\Menus\MainMenu") _oldMenuTexture = TextureManager.GetTexture("GUI\Menus\Menu") End If @@ -533,6 +536,7 @@ Public Class NewMainMenuScreen If _MainProfiles(_selectedProfile)._gameModeExists Then GameModeManager.SetGameModePointer(_MainProfiles(_selectedProfile)._gameMode) End If + Localization.ReloadGameModeTokens() _menuTexture = TextureManager.GetTexture("GUI\Menus\MainMenu") _oldMenuTexture = TextureManager.GetTexture("GUI\Menus\Menu") End If @@ -544,6 +548,7 @@ Public Class NewMainMenuScreen If _MainProfiles(_selectedProfile)._gameModeExists Then GameModeManager.SetGameModePointer(_MainProfiles(_selectedProfile)._gameMode) End If + Localization.ReloadGameModeTokens() _menuTexture = TextureManager.GetTexture("GUI\Menus\MainMenu") _oldMenuTexture = TextureManager.GetTexture("GUI\Menus\Menu") End If @@ -1611,6 +1616,7 @@ Public Class GameModeSelectionScreen PreScreen = currentScreen _gameModes = GameModeManager.GetAllGameModes GameModeManager.SetGameModePointer(_gameModes(_index).DirectoryName) + Localization.ReloadGameModeTokens() _menuTexture = TextureManager.GetTexture("GUI\Menus\MainMenu") End Sub @@ -1728,6 +1734,8 @@ Public Class GameModeSelectionScreen If _index > 0 AndAlso Controls.Up(True, True, True, True, True, True) Then _index -= 1 GameModeManager.SetGameModePointer(_gameModes(_index).DirectoryName) + Localization.ReloadGameModeTokens() + FontManager.LoadFonts() tempGameModesDisplay = "" GameModeSplash = Nothing _menuTexture = TextureManager.GetTexture("GUI\Menus\MainMenu") @@ -1735,6 +1743,8 @@ Public Class GameModeSelectionScreen If _index < _gameModes.Length - 1 AndAlso Controls.Down(True, True, True, True, True, True) Then _index += 1 GameModeManager.SetGameModePointer(_gameModes(_index).DirectoryName) + Localization.ReloadGameModeTokens() + FontManager.LoadFonts() tempGameModesDisplay = "" GameModeSplash = Nothing _menuTexture = TextureManager.GetTexture("GUI\Menus\MainMenu")