Losing the game now makes the EndGame UI always visible.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user