Finished first EA Version #1
@@ -60,17 +60,20 @@ public partial class UIHandler : Control
|
|||||||
|
|
||||||
public void HandleMenuButton()
|
public void HandleMenuButton()
|
||||||
{
|
{
|
||||||
|
if(GameData.survival.isDead) return;
|
||||||
OpenUIElement(menu);
|
OpenUIElement(menu);
|
||||||
GameData.isPaused = menu.Visible || options.Visible;
|
GameData.isPaused = menu.Visible || options.Visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void HandleMenu()
|
public void HandleMenu()
|
||||||
{
|
{
|
||||||
|
if(GameData.survival.isDead) return;
|
||||||
HandleMenuButton();
|
HandleMenuButton();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ShowOptions()
|
public void ShowOptions()
|
||||||
{
|
{
|
||||||
|
if(GameData.survival.isDead) return;
|
||||||
menu.Hide();
|
menu.Hide();
|
||||||
OpenUIElement(options);
|
OpenUIElement(options);
|
||||||
GameData.isPaused = options.Visible;
|
GameData.isPaused = options.Visible;
|
||||||
@@ -78,12 +81,14 @@ public partial class UIHandler : Control
|
|||||||
|
|
||||||
public void HandleMapButton()
|
public void HandleMapButton()
|
||||||
{
|
{
|
||||||
|
if(GameData.survival.isDead) return;
|
||||||
OpenUIElement(map);
|
OpenUIElement(map);
|
||||||
if (map.Visible) map.ShowMap();
|
if (map.Visible) map.ShowMap();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void HandleRobotListButton()
|
public void HandleRobotListButton()
|
||||||
{
|
{
|
||||||
|
if(GameData.survival.isDead) return;
|
||||||
receivedRobotFollowSignal = false;
|
receivedRobotFollowSignal = false;
|
||||||
receivedRobotJumpSignal = false;
|
receivedRobotJumpSignal = false;
|
||||||
OpenUIElement(robotList);
|
OpenUIElement(robotList);
|
||||||
@@ -91,11 +96,13 @@ public partial class UIHandler : Control
|
|||||||
|
|
||||||
public void HandleInventoryButton()
|
public void HandleInventoryButton()
|
||||||
{
|
{
|
||||||
|
if(GameData.survival.isDead) return;
|
||||||
OpenUIElement(inventory);
|
OpenUIElement(inventory);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void HandleResearchButton()
|
public void HandleResearchButton()
|
||||||
{
|
{
|
||||||
|
if(GameData.survival.isDead) return;
|
||||||
OpenUIElement(researchList);
|
OpenUIElement(researchList);
|
||||||
if (researchList.Visible) researchList.SetupGraph();
|
if (researchList.Visible) researchList.SetupGraph();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user