Added missing Symbol to the game, Improved move and explore logic, added map refresh for tiles.
This commit is contained in:
@@ -4,7 +4,7 @@ using Godot;
|
||||
|
||||
public partial class GameData
|
||||
{
|
||||
public static bool DEBUGMODE = true;
|
||||
public static bool DEBUGMODE = false;
|
||||
public static Random rand = new Random(seed);
|
||||
public static Layer[] map;
|
||||
//Current layer the player wants to see
|
||||
|
||||
@@ -16,6 +16,7 @@ public partial class UIHandler : Control
|
||||
[Export] Control uiContent;
|
||||
[Export] PanelContainer menu;
|
||||
[Export] PanelContainer inventory;
|
||||
[Export] ResearchList researchList;
|
||||
|
||||
bool receivedRobotJumpSignal = false;
|
||||
public override void _Ready()
|
||||
@@ -46,6 +47,7 @@ public partial class UIHandler : Control
|
||||
if (Input.IsActionJustPressed("menu")) HandleMenuButton();
|
||||
if (Input.IsActionJustPressed("robot_list")) HandleRobotListButton();
|
||||
if (Input.IsActionJustPressed("inventory")) HandleInventoryButton();
|
||||
if (Input.IsActionJustPressed("research")) HandleResearchButton();
|
||||
|
||||
}
|
||||
|
||||
@@ -57,7 +59,7 @@ public partial class UIHandler : Control
|
||||
public void HandleMapButton()
|
||||
{
|
||||
OpenUIElement(map);
|
||||
map.ShowMap();
|
||||
if(map.Visible) map.ShowMap();
|
||||
}
|
||||
|
||||
public void HandleRobotListButton()
|
||||
@@ -71,6 +73,12 @@ public partial class UIHandler : Control
|
||||
OpenUIElement(inventory);
|
||||
}
|
||||
|
||||
public void HandleResearchButton()
|
||||
{
|
||||
OpenUIElement(researchList);
|
||||
if(researchList.Visible) researchList.SetupGraph();
|
||||
}
|
||||
|
||||
public void DisplayStats()
|
||||
{
|
||||
FPS.Text = Engine.GetFramesPerSecond().ToString() + " FPS";
|
||||
|
||||
Reference in New Issue
Block a user