1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-23 05:53:14 +00:00
Pixelorama/src/Tools/SelectionTools/SelectionTool.tscn

120 lines
3.4 KiB
Text
Raw Normal View History

[gd_scene load_steps=3 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]
[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="XContainer" type="HBoxContainer" parent="." index="3"]
margin_top = 44.0
margin_right = 116.0
margin_bottom = 68.0
[node name="Label" type="Label" parent="XContainer" index="0"]
margin_top = 5.0
margin_right = 17.0
margin_bottom = 19.0
rect_min_size = Vector2( 17, 0 )
text = "X:"
[node name="XSpinBox" type="SpinBox" parent="XContainer" index="1"]
margin_left = 21.0
margin_right = 116.0
margin_bottom = 24.0
hint_tooltip = "X coordinate of the top left corner"
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
allow_greater = true
allow_lesser = true
[node name="YContainer" type="HBoxContainer" parent="." index="4"]
margin_top = 72.0
margin_right = 116.0
margin_bottom = 96.0
[node name="Label" type="Label" parent="YContainer" index="0"]
margin_top = 5.0
margin_right = 17.0
margin_bottom = 19.0
rect_min_size = Vector2( 17, 0 )
text = "Y:"
[node name="YSpinBox" type="SpinBox" parent="YContainer" index="1"]
margin_left = 21.0
margin_right = 116.0
margin_bottom = 24.0
hint_tooltip = "Y coordinate of the top left corner"
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
allow_greater = true
allow_lesser = true
[node name="SizeLabel" type="Label" parent="." index="5"]
margin_top = 100.0
margin_right = 116.0
margin_bottom = 114.0
text = "Size:"
[node name="WidthContainer" type="HBoxContainer" parent="." index="6"]
margin_top = 118.0
margin_right = 116.0
margin_bottom = 142.0
[node name="Label" type="Label" parent="WidthContainer" index="0"]
margin_top = 5.0
margin_right = 17.0
margin_bottom = 19.0
rect_min_size = Vector2( 17, 0 )
text = "W:"
[node name="WSpinBox" type="SpinBox" parent="WidthContainer" index="1"]
margin_left = 21.0
margin_right = 116.0
margin_bottom = 24.0
hint_tooltip = "Width of selection"
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
min_value = 1.0
value = 1.0
allow_greater = true
[node name="HeightContainer" type="HBoxContainer" parent="." index="7"]
margin_top = 146.0
margin_right = 116.0
margin_bottom = 170.0
[node name="Label" type="Label" parent="HeightContainer" index="0"]
margin_top = 5.0
margin_right = 17.0
margin_bottom = 19.0
rect_min_size = Vector2( 17, 0 )
text = "H:"
[node name="HSpinBox" type="SpinBox" parent="HeightContainer" index="1"]
margin_left = 21.0
margin_right = 116.0
margin_bottom = 24.0
hint_tooltip = "Height of selection"
mouse_default_cursor_shape = 2
size_flags_horizontal = 3
min_value = 1.0
value = 1.0
allow_greater = true
[node name="Timer" type="Timer" parent="." index="8"]
wait_time = 0.2
one_shot = true
[connection signal="value_changed" from="XContainer/XSpinBox" to="." method="_on_XSpinBox_value_changed"]
[connection signal="value_changed" from="YContainer/YSpinBox" to="." method="_on_YSpinBox_value_changed"]
[connection signal="value_changed" from="WidthContainer/WSpinBox" to="." method="_on_WSpinBox_value_changed"]
[connection signal="value_changed" from="HeightContainer/HSpinBox" to="." method="_on_HSpinBox_value_changed"]
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]