Added movement to DSL nodes to allow repositioning.
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
[ext_resource type="Script" uid="uid://b6kxwmuhmruul" path="res://Scripts/UI/DSL/NodeDisplay.cs" id="1_ve3v1"]
|
||||
[ext_resource type="Texture2D" uid="uid://wq8yc0u0ee33" path="res://Assets/Images/TrashSymbol.png" id="2_u1say"]
|
||||
[ext_resource type="Texture2D" uid="uid://djxwweinn5c4i" path="res://Assets/Images/ArrowUp.png" id="3_arrow_up"]
|
||||
[ext_resource type="Texture2D" uid="uid://66yiv4g7kfpv" path="res://Assets/Images/ArrowDown.png" id="4_arrow_down"]
|
||||
|
||||
[node name="Harvest" type="PanelContainer" unique_id=1323721153 node_paths=PackedStringArray("editorDisplay", "listDisplay")]
|
||||
anchors_preset = 14
|
||||
@@ -35,12 +37,26 @@ vertical_alignment = 1
|
||||
[node name="TextureButton" type="TextureButton" parent="EditorDisplay/HBoxContainer" unique_id=661274351]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 0.2
|
||||
size_flags_stretch_ratio = 0.1
|
||||
texture_normal = ExtResource("2_u1say")
|
||||
|
||||
[node name="MoveUp" type="TextureButton" parent="EditorDisplay/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 0.1
|
||||
texture_normal = ExtResource("3_arrow_up")
|
||||
|
||||
[node name="MoveDown" type="TextureButton" parent="EditorDisplay/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 0.1
|
||||
texture_normal = ExtResource("4_arrow_down")
|
||||
|
||||
[node name="ListDisplay" type="Button" parent="." unique_id=884865258]
|
||||
layout_mode = 2
|
||||
tooltip_text = "Harvests the resource from the tile the robot is currently standing on."
|
||||
text = "Harvest"
|
||||
|
||||
[connection signal="pressed" from="EditorDisplay/HBoxContainer/TextureButton" to="." method="DeleteNodePressed"]
|
||||
[connection signal="pressed" from="EditorDisplay/HBoxContainer/MoveUp" to="." method="MoveNodeUp"]
|
||||
[connection signal="pressed" from="EditorDisplay/HBoxContainer/MoveDown" to="." method="MoveNodeDown"]
|
||||
|
||||
Reference in New Issue
Block a user