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]
|
2022-10-15 02:03:15 +03:00
|
|
|
[ext_resource path="res://src/UI/Nodes/ValueSlider.tscn" type="PackedScene" id=3]
|
2021-04-28 02:57:48 +03:00
|
|
|
|
|
|
|
[node name="ToolOptions" instance=ExtResource( 1 )]
|
|
|
|
script = ExtResource( 2 )
|
|
|
|
|
2022-09-20 00:58:39 +03:00
|
|
|
[node name="PositionLabel" type="Label" parent="." index="2"]
|
|
|
|
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
|
2021-05-01 03:10:23 +03:00
|
|
|
text = "Position:"
|
|
|
|
|
2022-10-15 02:03:15 +03:00
|
|
|
[node name="XSpinBox" parent="." index="3" instance=ExtResource( 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-09-20 00:58:39 +03:00
|
|
|
margin_bottom = 68.0
|
2021-05-01 03:10:23 +03:00
|
|
|
hint_tooltip = "X coordinate of the top left corner"
|
|
|
|
allow_greater = true
|
|
|
|
allow_lesser = true
|
2022-10-15 02:03:15 +03:00
|
|
|
prefix = "X:"
|
2021-05-01 03:10:23 +03:00
|
|
|
|
2022-10-15 02:03:15 +03:00
|
|
|
[node name="YSpinBox" parent="." index="4" instance=ExtResource( 3 )]
|
2022-09-20 00:58:39 +03:00
|
|
|
margin_top = 72.0
|
2022-10-05 00:42:01 +03:00
|
|
|
margin_right = 116.0
|
2022-09-20 00:58:39 +03:00
|
|
|
margin_bottom = 96.0
|
2021-05-01 03:10:23 +03:00
|
|
|
hint_tooltip = "Y coordinate of the top left corner"
|
|
|
|
allow_greater = true
|
|
|
|
allow_lesser = true
|
2022-10-15 02:03:15 +03:00
|
|
|
prefix = "Y:"
|
2021-05-01 03:10:23 +03:00
|
|
|
|
2022-09-20 00:58:39 +03:00
|
|
|
[node name="SizeLabel" type="Label" parent="." index="5"]
|
|
|
|
margin_top = 100.0
|
2021-05-01 03:10:23 +03:00
|
|
|
margin_right = 116.0
|
2022-09-20 00:58:39 +03:00
|
|
|
margin_bottom = 114.0
|
2021-05-01 03:10:23 +03:00
|
|
|
text = "Size:"
|
|
|
|
|
2022-10-15 02:03:15 +03:00
|
|
|
[node name="WSpinBox" parent="." index="6" instance=ExtResource( 3 )]
|
2022-09-20 00:58:39 +03:00
|
|
|
margin_top = 118.0
|
2022-10-05 00:42:01 +03:00
|
|
|
margin_right = 116.0
|
2022-09-20 00:58:39 +03:00
|
|
|
margin_bottom = 142.0
|
2021-05-01 03:10:23 +03:00
|
|
|
hint_tooltip = "Width of selection"
|
|
|
|
min_value = 1.0
|
|
|
|
value = 1.0
|
|
|
|
allow_greater = true
|
2022-10-15 02:03:15 +03:00
|
|
|
prefix = "W:"
|
2021-05-01 03:10:23 +03:00
|
|
|
|
2022-10-15 02:03:15 +03:00
|
|
|
[node name="HSpinBox" parent="." index="7" instance=ExtResource( 3 )]
|
2022-09-20 00:58:39 +03:00
|
|
|
margin_top = 146.0
|
2022-10-05 00:42:01 +03:00
|
|
|
margin_right = 116.0
|
2022-09-20 00:58:39 +03:00
|
|
|
margin_bottom = 170.0
|
2021-05-01 03:10:23 +03:00
|
|
|
hint_tooltip = "Height of selection"
|
|
|
|
min_value = 1.0
|
|
|
|
value = 1.0
|
|
|
|
allow_greater = true
|
2022-10-15 02:03:15 +03:00
|
|
|
prefix = "H:"
|
2021-05-01 03:10:23 +03:00
|
|
|
|
2022-09-20 00:58:39 +03: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-10-15 02:03:15 +03:00
|
|
|
[connection signal="value_changed" from="XSpinBox" to="." method="_on_position_value_changed" binds= [ true ]]
|
|
|
|
[connection signal="value_changed" from="YSpinBox" to="." method="_on_position_value_changed" binds= [ false ]]
|
|
|
|
[connection signal="value_changed" from="WSpinBox" to="." method="_on_size_value_changed" binds= [ true ]]
|
|
|
|
[connection signal="value_changed" from="HSpinBox" to="." method="_on_size_value_changed" binds= [ false ]]
|
2021-05-11 00:27:57 +03:00
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|