1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-22 13:33:13 +00:00
Pixelorama/src/Tools/SelectionTools/SelectionTool.tscn

69 lines
2.1 KiB
Text
Raw Normal View History

[gd_scene load_steps=4 format=2]
[ext_resource path="res://src/Tools/BaseTool.tscn" type="PackedScene" id=1]
[ext_resource path="res://src/Tools/SelectionTools/SelectionTool.gd" type="Script" id=2]
[ext_resource path="res://src/UI/Nodes/ValueSlider.tscn" type="PackedScene" id=3]
[node name="ToolOptions" instance=ExtResource( 1 )]
script = ExtResource( 2 )
[node name="PositionLabel" type="Label" parent="." index="2"]
margin_top = 26.0
margin_right = 116.0
margin_bottom = 40.0
text = "Position:"
[node name="XSpinBox" parent="." index="3" instance=ExtResource( 3 )]
margin_top = 44.0
margin_right = 116.0
margin_bottom = 68.0
hint_tooltip = "X coordinate of the top left corner"
allow_greater = true
allow_lesser = true
prefix = "X:"
[node name="YSpinBox" parent="." index="4" instance=ExtResource( 3 )]
margin_top = 72.0
margin_right = 116.0
margin_bottom = 96.0
hint_tooltip = "Y coordinate of the top left corner"
allow_greater = true
allow_lesser = true
prefix = "Y:"
[node name="SizeLabel" type="Label" parent="." index="5"]
margin_top = 100.0
margin_right = 116.0
margin_bottom = 114.0
text = "Size:"
[node name="WSpinBox" parent="." index="6" instance=ExtResource( 3 )]
margin_top = 118.0
margin_right = 116.0
margin_bottom = 142.0
hint_tooltip = "Width of selection"
min_value = 1.0
value = 1.0
allow_greater = true
prefix = "W:"
[node name="HSpinBox" parent="." index="7" instance=ExtResource( 3 )]
margin_top = 146.0
margin_right = 116.0
margin_bottom = 170.0
hint_tooltip = "Height of selection"
min_value = 1.0
value = 1.0
allow_greater = true
prefix = "H:"
[node name="Timer" type="Timer" parent="." index="8"]
wait_time = 0.2
one_shot = true
[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 ]]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]