Added missing Symbol to the game, Improved move and explore logic, added map refresh for tiles.

This commit is contained in:
2026-05-09 09:38:34 +02:00
parent 342b6e490f
commit e00259cd31
13 changed files with 127 additions and 35 deletions
+9 -1
View File
@@ -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";