(WIP) switched from previous DSL System (UI order based) to a new DSL System (node connection based)
This commit is contained in:
+43
-54
@@ -1,65 +1,47 @@
|
||||
[gd_scene format=3 uid="uid://co7op7et6is8p"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b6kxwmuhmruul" path="res://Scripts/UI/DSL/NodeDisplay.cs" id="1_xshi5"]
|
||||
[ext_resource type="Texture2D" uid="uid://wq8yc0u0ee33" path="res://Assets/Images/TrashSymbol.png" id="2_mtk18"]
|
||||
[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/ForNodeDisplay.cs" id="1_xshi5"]
|
||||
|
||||
[node name="Craft" type="PanelContainer" unique_id=247502695 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
|
||||
[node name="For" type="GraphNode" unique_id=1235671673]
|
||||
offset_right = 229.0
|
||||
offset_bottom = 129.0
|
||||
theme_override_constants/separation = 20
|
||||
title = "For"
|
||||
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
|
||||
slot/1/left_enabled = true
|
||||
slot/1/left_type = 0
|
||||
slot/1/left_color = Color(1, 1, 1, 1)
|
||||
slot/1/left_icon = null
|
||||
slot/1/right_enabled = true
|
||||
slot/1/right_type = 0
|
||||
slot/1/right_color = Color(1, 1, 1, 1)
|
||||
slot/1/right_icon = null
|
||||
slot/1/draw_stylebox = true
|
||||
script = ExtResource("1_xshi5")
|
||||
editorDisplay = NodePath("EditorDisplay")
|
||||
listDisplay = NodePath("ListDisplay")
|
||||
|
||||
[node name="EditorDisplay" type="PanelContainer" parent="." unique_id=1839537826]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="EditorDisplay" unique_id=914671634]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="EditorDisplay/VBoxContainer" unique_id=945032897]
|
||||
[node name="Values" type="HBoxContainer" parent="." unique_id=1896004369]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Flavour" type="RichTextLabel" parent="EditorDisplay/VBoxContainer/HBoxContainer" unique_id=1994560318]
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="Values" unique_id=1832504365]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
text = "For:"
|
||||
size_flags_stretch_ratio = 0.3
|
||||
text = "Repeat"
|
||||
fit_content = true
|
||||
autowrap_mode = 0
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="TextureButton" type="TextureButton" parent="EditorDisplay/VBoxContainer/HBoxContainer" unique_id=479938935]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 0.1
|
||||
texture_normal = ExtResource("2_mtk18")
|
||||
|
||||
[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=1896004369]
|
||||
layout_mode = 2
|
||||
alignment = 1
|
||||
|
||||
[node name="Amount" type="SpinBox" parent="EditorDisplay/VBoxContainer/Values" unique_id=1393892745]
|
||||
[node name="Amount" type="SpinBox" parent="Values" unique_id=1393892745]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
rounded = true
|
||||
@@ -67,12 +49,19 @@ alignment = 1
|
||||
prefix = "x"
|
||||
select_all_on_focus = true
|
||||
|
||||
[node name="ListDisplay" type="Button" parent="." unique_id=200731038]
|
||||
visible = false
|
||||
[node name="RichTextLabel2" type="RichTextLabel" parent="Values" unique_id=1394844571]
|
||||
layout_mode = 2
|
||||
tooltip_text = "Repeats the following blocks to the next for, until or while block the selected amount of times."
|
||||
text = "For"
|
||||
size_flags_horizontal = 3
|
||||
size_flags_stretch_ratio = 0.3
|
||||
text = "times"
|
||||
fit_content = true
|
||||
autowrap_mode = 0
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[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"]
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="." unique_id=1677882951]
|
||||
layout_mode = 2
|
||||
text = "Until"
|
||||
fit_content = true
|
||||
autowrap_mode = 0
|
||||
horizontal_alignment = 1
|
||||
|
||||
Reference in New Issue
Block a user