(WIP) switched from previous DSL System (UI order based) to a new DSL System (node connection based)
This commit is contained in:
+22
-58
@@ -1,65 +1,38 @@
|
||||
[gd_scene format=3 uid="uid://by0khq5dmxjvm"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b6kxwmuhmruul" path="res://Scripts/UI/DSL/NodeDisplay.cs" id="1_mexpj"]
|
||||
[ext_resource type="Texture2D" uid="uid://wq8yc0u0ee33" path="res://Assets/Images/TrashSymbol.png" id="2_5ujwv"]
|
||||
[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"]
|
||||
[ext_resource type="Script" path="res://Scripts/UI/DSL/NodeDisplays/MoveNodeDisplay.cs" id="1_mexpj"]
|
||||
|
||||
[node name="Move" type="PanelContainer" unique_id=1474470717 node_paths=PackedStringArray("editorDisplay", "listDisplay")]
|
||||
anchors_preset = 14
|
||||
anchor_top = 0.5
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 0.5
|
||||
offset_bottom = 31.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
size_flags_horizontal = 3
|
||||
[node name="Move" type="GraphNode" unique_id=1386049718]
|
||||
offset_right = 373.0
|
||||
offset_bottom = 86.0
|
||||
title = "Move"
|
||||
slot/0/left_enabled = true
|
||||
slot/0/left_type = 0
|
||||
slot/0/left_color = Color(1, 1, 1, 1)
|
||||
slot/0/left_icon = null
|
||||
slot/0/right_enabled = true
|
||||
slot/0/right_type = 0
|
||||
slot/0/right_color = Color(1, 1, 1, 1)
|
||||
slot/0/right_icon = null
|
||||
slot/0/draw_stylebox = true
|
||||
script = ExtResource("1_mexpj")
|
||||
editorDisplay = NodePath("EditorDisplay")
|
||||
listDisplay = NodePath("ListDisplay")
|
||||
|
||||
[node name="EditorDisplay" type="PanelContainer" parent="." unique_id=245583237]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="EditorDisplay" unique_id=2004713919]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="EditorDisplay/VBoxContainer" unique_id=1629099069]
|
||||
[node name="Values" type="HBoxContainer" parent="." unique_id=1288550105]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Flavour" type="RichTextLabel" parent="EditorDisplay/VBoxContainer/HBoxContainer" unique_id=1497013575]
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="Values" unique_id=1529203020]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "Move to: "
|
||||
size_flags_stretch_ratio = 0.2
|
||||
text = "Move to:"
|
||||
fit_content = true
|
||||
autowrap_mode = 0
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
justification_flags = 161
|
||||
|
||||
[node name="TextureButton" type="TextureButton" parent="EditorDisplay/VBoxContainer/HBoxContainer" unique_id=753598237]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 0.1
|
||||
texture_normal = ExtResource("2_5ujwv")
|
||||
|
||||
[node name="MoveUp" type="TextureButton" parent="EditorDisplay/VBoxContainer/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/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 0.1
|
||||
texture_normal = ExtResource("4_arrow_down")
|
||||
|
||||
[node name="Values" type="HBoxContainer" parent="EditorDisplay/VBoxContainer" unique_id=1288550105]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="CoordinateX" type="SpinBox" parent="EditorDisplay/VBoxContainer/Values" unique_id=2062502281]
|
||||
[node name="CoordinateX" type="SpinBox" parent="Values" unique_id=2062502281]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
rounded = true
|
||||
@@ -67,7 +40,7 @@ alignment = 1
|
||||
prefix = "X"
|
||||
select_all_on_focus = true
|
||||
|
||||
[node name="CoordinateY" type="SpinBox" parent="EditorDisplay/VBoxContainer/Values" unique_id=211509452]
|
||||
[node name="CoordinateY" type="SpinBox" parent="Values" unique_id=211509452]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
rounded = true
|
||||
@@ -75,19 +48,10 @@ alignment = 1
|
||||
prefix = "Y"
|
||||
select_all_on_focus = true
|
||||
|
||||
[node name="CoordinateZ" type="SpinBox" parent="EditorDisplay/VBoxContainer/Values" unique_id=832152386]
|
||||
[node name="CoordinateZ" type="SpinBox" parent="Values" unique_id=832152386]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
rounded = true
|
||||
alignment = 1
|
||||
prefix = "Z"
|
||||
select_all_on_focus = true
|
||||
|
||||
[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/VBoxContainer/HBoxContainer/TextureButton" to="." method="DeleteNodePressed"]
|
||||
[connection signal="pressed" from="EditorDisplay/VBoxContainer/HBoxContainer/MoveUp" to="." method="MoveNodeUp"]
|
||||
[connection signal="pressed" from="EditorDisplay/VBoxContainer/HBoxContainer/MoveDown" to="." method="MoveNodeDown"]
|
||||
|
||||
Reference in New Issue
Block a user