Skip to content

Commit

Permalink
Fix non-localized main menu buttons changing to "Single Player" after…
Browse files Browse the repository at this point in the history
… switching languages
  • Loading branch information
jan-bures committed Jan 1, 2024
1 parent 5533fba commit 81556db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SpaceWarp.UI/Patching/MainMenuPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ public static void Postfix(LandingHUD __instance)
var tmp = newButton.GetComponentInChildren<TextMeshProUGUI>();

tmp.SetText(menuButtonToBeAdded.name);

LocalizationManager.OnLocalizeEvent += () => tmp.SetText(menuButtonToBeAdded.name);
}

foreach (var localizedMenuButtonToBeAddded in MainMenu.LocalizedMenuButtonsToBeAdded)
Expand Down

0 comments on commit 81556db

Please sign in to comment.