2022-10-15 02:03:15 +03:00
|
|
|
[gd_scene load_steps=4 format=2]
|
2021-04-28 02:57:48 +03:00
|
|
|
|
|
|
|
[ext_resource path="res://src/Tools/BaseTool.tscn" type="PackedScene" id=1]
|
2021-04-28 03:06:03 +03:00
|
|
|
[ext_resource path="res://src/Tools/SelectionTools/SelectionTool.gd" type="Script" id=2]
|
2023-03-20 00:56:43 +02:00
|
|
|
[ext_resource path="res://src/UI/Nodes/ValueSliderV2.tscn" type="PackedScene" id=4]
|
2021-04-28 02:57:48 +03:00
|
|
|
|
|
|
|
[node name="ToolOptions" instance=ExtResource( 1 )]
|
|
|
|
script = ExtResource( 2 )
|
|
|
|
|
2022-12-31 23:13:27 +05:00
|
|
|
[node name="ModeLabel" type="Label" parent="." index="2"]
|
2022-09-20 00:58:39 +03:00
|
|
|
margin_top = 26.0
|
2021-05-01 03:10:23 +03:00
|
|
|
margin_right = 116.0
|
2022-09-20 00:58:39 +03:00
|
|
|
margin_bottom = 40.0
|
2022-12-31 23:13:27 +05:00
|
|
|
text = "Mode:"
|
2021-05-01 03:10:23 +03:00
|
|
|
|
2022-12-31 23:13:27 +05:00
|
|
|
[node name="Modes" type="OptionButton" parent="." index="3"]
|
2022-09-20 00:58:39 +03:00
|
|
|
margin_top = 44.0
|
2022-10-05 00:42:01 +03:00
|
|
|
margin_right = 116.0
|
2022-12-31 23:13:27 +05:00
|
|
|
margin_bottom = 64.0
|
2023-03-20 00:56:43 +02:00
|
|
|
mouse_default_cursor_shape = 2
|
2022-12-31 23:13:27 +05:00
|
|
|
align = 1
|
|
|
|
|
|
|
|
[node name="PositionLabel" type="Label" parent="." index="4"]
|
|
|
|
margin_top = 68.0
|
|
|
|
margin_right = 116.0
|
|
|
|
margin_bottom = 82.0
|
|
|
|
text = "Position:"
|
|
|
|
|
2023-03-20 00:56:43 +02:00
|
|
|
[node name="Position" parent="." index="5" instance=ExtResource( 4 )]
|
2022-12-31 23:13:27 +05:00
|
|
|
margin_top = 86.0
|
|
|
|
margin_right = 116.0
|
|
|
|
margin_bottom = 138.0
|
2021-05-01 03:10:23 +03:00
|
|
|
allow_greater = true
|
|
|
|
allow_lesser = true
|
|
|
|
|
2023-03-20 00:56:43 +02:00
|
|
|
[node name="SizeLabel" type="Label" parent="." index="6"]
|
2022-12-31 23:13:27 +05:00
|
|
|
margin_top = 142.0
|
2021-05-01 03:10:23 +03:00
|
|
|
margin_right = 116.0
|
2022-12-31 23:13:27 +05:00
|
|
|
margin_bottom = 156.0
|
2021-05-01 03:10:23 +03:00
|
|
|
text = "Size:"
|
|
|
|
|
2023-03-20 00:56:43 +02:00
|
|
|
[node name="Size" parent="." index="7" instance=ExtResource( 4 )]
|
2022-12-31 23:13:27 +05:00
|
|
|
margin_top = 160.0
|
2022-10-05 00:42:01 +03:00
|
|
|
margin_right = 116.0
|
2022-12-31 23:13:27 +05:00
|
|
|
margin_bottom = 212.0
|
2023-03-20 00:56:43 +02:00
|
|
|
value = Vector2( 1, 1 )
|
2023-03-21 01:45:09 +02:00
|
|
|
min_value = Vector2( 1, 1 )
|
2021-05-01 03:10:23 +03:00
|
|
|
allow_greater = true
|
2023-03-20 00:56:43 +02:00
|
|
|
show_ratio = true
|
|
|
|
prefix_x = "Width:"
|
|
|
|
prefix_y = "Height:"
|
2021-05-01 03:10:23 +03:00
|
|
|
|
2023-03-20 00:56:43 +02:00
|
|
|
[node name="Timer" type="Timer" parent="." index="8"]
|
2021-05-11 00:27:57 +03:00
|
|
|
wait_time = 0.2
|
|
|
|
one_shot = true
|
|
|
|
|
2022-12-31 23:13:27 +05:00
|
|
|
[connection signal="item_selected" from="Modes" to="." method="_on_Modes_item_selected"]
|
2023-03-20 00:56:43 +02:00
|
|
|
[connection signal="value_changed" from="Position" to="." method="_on_Position_value_changed"]
|
|
|
|
[connection signal="value_changed" from="Size" to="." method="_on_Size_value_changed"]
|
2021-05-11 00:27:57 +03:00
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|