Added ability to delete nodes from editor, added complete node load and save for the DSL

This commit is contained in:
2026-05-06 09:29:28 +02:00
parent 44bfd7ce1d
commit 18b76f3cbc
20 changed files with 451 additions and 84 deletions
+14
View File
@@ -1,6 +1,7 @@
[gd_scene format=3 uid="uid://by0khq5dmxjvm"]
[ext_resource type="Script" uid="uid://b6kxwmuhmruul" path="res://Scripts/DSL/NodeDisplay.cs" id="1_mexpj"]
[ext_resource type="Texture2D" uid="uid://wq8yc0u0ee33" path="res://Assets/Images/TrashSymbol.png" id="2_5ujwv"]
[node name="Move" type="PanelContainer" unique_id=1474470717 node_paths=PackedStringArray("editorDisplay", "listDisplay")]
anchors_preset = 14
@@ -24,6 +25,7 @@ alignment = 1
[node name="Flavour" type="RichTextLabel" parent="EditorDisplay/HBoxContainer" unique_id=1497013575]
layout_mode = 2
size_flags_horizontal = 3
text = "Move to: "
fit_content = true
autowrap_mode = 0
@@ -32,22 +34,34 @@ vertical_alignment = 1
[node name="CoordinateX" type="SpinBox" parent="EditorDisplay/HBoxContainer" unique_id=485214217]
layout_mode = 2
size_flags_horizontal = 3
rounded = true
alignment = 1
prefix = "X"
[node name="CoordinateY" type="SpinBox" parent="EditorDisplay/HBoxContainer" unique_id=724940645]
layout_mode = 2
size_flags_horizontal = 3
rounded = true
alignment = 1
prefix = "Y"
[node name="CoordinateZ" type="SpinBox" parent="EditorDisplay/HBoxContainer" unique_id=578943647]
layout_mode = 2
size_flags_horizontal = 3
rounded = true
alignment = 1
prefix = "Z"
[node name="TextureButton" type="TextureButton" parent="EditorDisplay/HBoxContainer" unique_id=753598237]
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 0.2
texture_normal = ExtResource("2_5ujwv")
[node name="ListDisplay" type="Button" parent="." unique_id=347942160]
layout_mode = 2
tooltip_text = "Moves the robot to the selected coordinate"
text = "Move"
[connection signal="pressed" from="EditorDisplay/HBoxContainer/TextureButton" to="." method="DeleteNodePressed"]