From 1dfc7c19f567a0615f55bf5d4df05f063e500f86 Mon Sep 17 00:00:00 2001 From: drojf Date: Wed, 31 Aug 2022 19:46:23 +1000 Subject: [PATCH] Prevent text window appearing in title menu --- Assets.Scripts.UI/MainUIController.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets.Scripts.UI/MainUIController.cs b/Assets.Scripts.UI/MainUIController.cs index 3a418c58..65005523 100644 --- a/Assets.Scripts.UI/MainUIController.cs +++ b/Assets.Scripts.UI/MainUIController.cs @@ -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) {