From 1eef71f454d5b933d13bc8721621c4b383c66059 Mon Sep 17 00:00:00 2001 From: Nicola Date: Wed, 13 May 2026 09:07:16 +0200 Subject: [PATCH] Losing the game now makes the EndGame UI always visible. --- Scripts/UI/Common/UIHandler.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Scripts/UI/Common/UIHandler.cs b/Scripts/UI/Common/UIHandler.cs index 5162d73..ae588a8 100644 --- a/Scripts/UI/Common/UIHandler.cs +++ b/Scripts/UI/Common/UIHandler.cs @@ -60,17 +60,20 @@ public partial class UIHandler : Control public void HandleMenuButton() { + if(GameData.survival.isDead) return; OpenUIElement(menu); GameData.isPaused = menu.Visible || options.Visible; } public void HandleMenu() { + if(GameData.survival.isDead) return; HandleMenuButton(); } public void ShowOptions() { + if(GameData.survival.isDead) return; menu.Hide(); OpenUIElement(options); GameData.isPaused = options.Visible; @@ -78,12 +81,14 @@ public partial class UIHandler : Control public void HandleMapButton() { + if(GameData.survival.isDead) return; OpenUIElement(map); if (map.Visible) map.ShowMap(); } public void HandleRobotListButton() { + if(GameData.survival.isDead) return; receivedRobotFollowSignal = false; receivedRobotJumpSignal = false; OpenUIElement(robotList); @@ -91,11 +96,13 @@ public partial class UIHandler : Control public void HandleInventoryButton() { + if(GameData.survival.isDead) return; OpenUIElement(inventory); } public void HandleResearchButton() { + if(GameData.survival.isDead) return; OpenUIElement(researchList); if (researchList.Visible) researchList.SetupGraph(); }