1
- [gd_scene load_steps =10 format =3 uid ="uid://cjvxs6euc6xbm" ]
1
+ [gd_scene load_steps =11 format =3 uid ="uid://cjvxs6euc6xbm" ]
2
2
3
3
[ext_resource type ="Script" path ="res://addons/block_code/ui/blocks/utilities/parameter_input/parameter_input.gd" id ="1_rgmxn" ]
4
+ [ext_resource type ="PackedScene" uid ="uid://c1l0mpkvmvwfd" path ="res://addons/block_code/ui/blocks/utilities/drag_drop_area/drag_drop_area.tscn" id ="2_05gck" ]
4
5
[ext_resource type ="PackedScene" uid ="uid://b1oge52xhjqnu" path ="res://addons/block_code/ui/blocks/utilities/snap_point/snap_point.tscn" id ="2_6esp3" ]
5
6
6
7
[sub_resource type ="StyleBoxFlat" id ="StyleBoxFlat_tn6h4" ]
@@ -71,6 +72,10 @@ theme_override_styles/normal = SubResource("StyleBoxEmpty_6oowp")
71
72
placeholder_text = "Parameter"
72
73
expand_to_text_length = true
73
74
75
+ [node name ="DragDropArea" parent ="InputSwitcher/TextInput/LineEdit" instance =ExtResource ("2_05gck" )]
76
+ layout_mode = 1
77
+ drag_outside = true
78
+
74
79
[node name ="ColorInput" type ="ColorPickerButton" parent ="InputSwitcher" ]
75
80
unique_name_in_owner = true
76
81
visible = false
@@ -80,6 +85,10 @@ layout_mode = 2
80
85
mouse_default_cursor_shape = 2
81
86
theme_override_styles/normal = SubResource ("StyleBoxEmpty_5hq7f" )
82
87
88
+ [node name ="DragDropArea" parent ="InputSwitcher/ColorInput" instance =ExtResource ("2_05gck" )]
89
+ layout_mode = 1
90
+ drag_outside = true
91
+
83
92
[node name ="OptionInput" type ="OptionButton" parent ="InputSwitcher" ]
84
93
unique_name_in_owner = true
85
94
visible = false
@@ -90,6 +99,10 @@ theme_override_styles/normal = SubResource("StyleBoxEmpty_fjquj")
90
99
action_mode = 1
91
100
fit_to_longest_item = false
92
101
102
+ [node name ="DragDropArea" parent ="InputSwitcher/OptionInput" instance =ExtResource ("2_05gck" )]
103
+ layout_mode = 1
104
+ drag_outside = true
105
+
93
106
[node name ="Vector2Input" type ="MarginContainer" parent ="InputSwitcher" ]
94
107
unique_name_in_owner = true
95
108
visible = false
@@ -121,6 +134,10 @@ placeholder_text = "x"
121
134
alignment = 1
122
135
expand_to_text_length = true
123
136
137
+ [node name ="DragDropArea" parent ="InputSwitcher/Vector2Input/HBoxContainer/XLineEdit" instance =ExtResource ("2_05gck" )]
138
+ layout_mode = 1
139
+ drag_outside = true
140
+
124
141
[node name ="Control3" type ="Control" parent ="InputSwitcher/Vector2Input/HBoxContainer" ]
125
142
layout_mode = 2
126
143
size_flags_horizontal = 3
@@ -135,6 +152,10 @@ layout_mode = 2
135
152
size_flags_horizontal = 4
136
153
color = Color (0.804743 , 0.804743 , 0.804743 , 1 )
137
154
155
+ [node name ="DragDropArea" parent ="InputSwitcher/Vector2Input/HBoxContainer/CenterContainer/ColorRect" instance =ExtResource ("2_05gck" )]
156
+ layout_mode = 1
157
+ drag_outside = true
158
+
138
159
[node name ="Control4" type ="Control" parent ="InputSwitcher/Vector2Input/HBoxContainer" ]
139
160
layout_mode = 2
140
161
size_flags_horizontal = 3
@@ -154,6 +175,10 @@ placeholder_text = "y"
154
175
alignment = 1
155
176
expand_to_text_length = true
156
177
178
+ [node name ="DragDropArea" parent ="InputSwitcher/Vector2Input/HBoxContainer/YLineEdit" instance =ExtResource ("2_05gck" )]
179
+ layout_mode = 1
180
+ drag_outside = true
181
+
157
182
[node name ="Control2" type ="Control" parent ="InputSwitcher/Vector2Input/HBoxContainer" ]
158
183
layout_mode = 2
159
184
size_flags_horizontal = 3
@@ -179,6 +204,10 @@ popup/item_0/text = "false"
179
204
popup/item_1/text = "true"
180
205
popup/item_1/id = 1
181
206
207
+ [node name ="DragDropArea" parent ="InputSwitcher/BoolInput/BoolInputOption" instance =ExtResource ("2_05gck" )]
208
+ layout_mode = 1
209
+ drag_outside = true
210
+
182
211
[node name ="SnapPoint" parent ="." instance =ExtResource ("2_6esp3" )]
183
212
unique_name_in_owner = true
184
213
layout_mode = 2
@@ -187,11 +216,18 @@ variant_type = 4
187
216
188
217
[connection signal ="focus_exited" from ="InputSwitcher/TextInput/LineEdit" to ="." method ="_on_line_edit_focus_exited" ]
189
218
[connection signal ="text_submitted" from ="InputSwitcher/TextInput/LineEdit" to ="." method ="_on_line_edit_text_submitted" ]
219
+ [connection signal ="drag_started" from ="InputSwitcher/TextInput/LineEdit/DragDropArea" to ="." method ="_on_drag_drop_area_drag_started" ]
190
220
[connection signal ="color_changed" from ="InputSwitcher/ColorInput" to ="." method ="_on_color_input_color_changed" ]
221
+ [connection signal ="drag_started" from ="InputSwitcher/ColorInput/DragDropArea" to ="." method ="_on_drag_drop_area_drag_started" ]
191
222
[connection signal ="item_selected" from ="InputSwitcher/OptionInput" to ="." method ="_on_option_input_item_selected" ]
223
+ [connection signal ="drag_started" from ="InputSwitcher/OptionInput/DragDropArea" to ="." method ="_on_drag_drop_area_drag_started" ]
192
224
[connection signal ="focus_exited" from ="InputSwitcher/Vector2Input/HBoxContainer/XLineEdit" to ="." method ="_on_x_line_edit_focus_exited" ]
193
225
[connection signal ="text_submitted" from ="InputSwitcher/Vector2Input/HBoxContainer/XLineEdit" to ="." method ="_on_x_line_edit_text_submitted" ]
226
+ [connection signal ="drag_started" from ="InputSwitcher/Vector2Input/HBoxContainer/XLineEdit/DragDropArea" to ="." method ="_on_drag_drop_area_drag_started" ]
227
+ [connection signal ="drag_started" from ="InputSwitcher/Vector2Input/HBoxContainer/CenterContainer/ColorRect/DragDropArea" to ="." method ="_on_drag_drop_area_drag_started" ]
194
228
[connection signal ="focus_exited" from ="InputSwitcher/Vector2Input/HBoxContainer/YLineEdit" to ="." method ="_on_y_line_edit_focus_exited" ]
195
229
[connection signal ="text_submitted" from ="InputSwitcher/Vector2Input/HBoxContainer/YLineEdit" to ="." method ="_on_y_line_edit_text_submitted" ]
230
+ [connection signal ="drag_started" from ="InputSwitcher/Vector2Input/HBoxContainer/YLineEdit/DragDropArea" to ="." method ="_on_drag_drop_area_drag_started" ]
196
231
[connection signal ="item_selected" from ="InputSwitcher/BoolInput/BoolInputOption" to ="." method ="_on_option_input_item_selected" ]
232
+ [connection signal ="drag_started" from ="InputSwitcher/BoolInput/BoolInputOption/DragDropArea" to ="." method ="_on_drag_drop_area_drag_started" ]
197
233
[connection signal ="snapped_block_changed" from ="SnapPoint" to ="." method ="_on_snap_point_snapped_block_changed" ]
0 commit comments