Skip to content

Commit

Permalink
Prevent text window appearing in title menu
Browse files Browse the repository at this point in the history
  • Loading branch information
drojf committed Sep 3, 2022
1 parent 7f86424 commit 1dfc7c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Assets.Scripts.UI/MainUIController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,12 @@ public void TryRedrawTextWindowBackground(string windowFilterTextureName)
{
MainUIController ui = GameSystem.Instance.MainUIController;

// Prevent text window background appearing on top of the title screen in Rei
if(GameSystem.Instance.GameState == GameState.TitleScreen)
{
return;
}

// If this function is called from the main menu, the bgLayers might be null
if (ui.bgLayer == null || ui.bgLayer2 == null)
{
Expand Down

0 comments on commit 1dfc7c1

Please sign in to comment.