Added ability to delete nodes from editor, added complete node load and save for the DSL
This commit is contained in:
@@ -26,6 +26,7 @@ public partial class UIHandler : Control
|
||||
// Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
public override void _Process(double delta)
|
||||
{
|
||||
DisplayStats();
|
||||
robotList.OnRobotJumpTo += (robot) =>
|
||||
{
|
||||
if(receivedRobotJumpSignal) return;
|
||||
@@ -35,11 +36,17 @@ public partial class UIHandler : Control
|
||||
OpenUIElement(codingWindow);
|
||||
};
|
||||
|
||||
//Enable user to write in input fields
|
||||
Control focused = GetViewport().GuiGetFocusOwner();
|
||||
|
||||
if (focused is LineEdit || focused is TextEdit)
|
||||
return;
|
||||
|
||||
if (Input.IsActionJustPressed("map")) HandleMapButton();
|
||||
if (Input.IsActionJustPressed("menu")) HandleMenuButton();
|
||||
if (Input.IsActionJustPressed("robot_list")) HandleRobotListButton();
|
||||
if (Input.IsActionJustPressed("inventory")) HandleInventoryButton();
|
||||
DisplayStats();
|
||||
|
||||
}
|
||||
|
||||
public void HandleMenuButton()
|
||||
|
||||
Reference in New Issue
Block a user