Skip to content

Commit 1dfc7c1

Browse files
committed
Prevent text window appearing in title menu
1 parent 7f86424 commit 1dfc7c1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Assets.Scripts.UI/MainUIController.cs

+6
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,12 @@ public void TryRedrawTextWindowBackground(string windowFilterTextureName)
499499
{
500500
MainUIController ui = GameSystem.Instance.MainUIController;
501501

502+
// Prevent text window background appearing on top of the title screen in Rei
503+
if(GameSystem.Instance.GameState == GameState.TitleScreen)
504+
{
505+
return;
506+
}
507+
502508
// If this function is called from the main menu, the bgLayers might be null
503509
if (ui.bgLayer == null || ui.bgLayer2 == null)
504510
{

0 commit comments

Comments
 (0)