1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-02-08 11:29:47 +00:00
Pixelorama/src/UI/Dialogs/ResizeCanvas.tscn

118 lines
3.4 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=2 format=2]
[ext_resource path="res://src/UI/Dialogs/ResizeCanvas.gd" type="Script" id=1]
[node name="ResizeCanvas" type="ConfirmationDialog"]
margin_right = 200.0
margin_bottom = 114.0
script = ExtResource( 1 )
[node name="VBoxContainer" type="VBoxContainer" parent="."]
margin_left = 8.0
margin_top = 8.0
margin_right = 192.0
margin_bottom = 176.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ImageSize" type="Label" parent="VBoxContainer"]
margin_right = 184.0
margin_bottom = 14.0
text = "Canvas Size"
[node name="OptionsContainer" type="GridContainer" parent="VBoxContainer"]
margin_top = 18.0
margin_right = 184.0
margin_bottom = 168.0
custom_constants/vseparation = 4
custom_constants/hseparation = 2
columns = 2
[node name="WidthLabel" type="Label" parent="VBoxContainer/OptionsContainer"]
margin_top = 5.0
margin_right = 54.0
margin_bottom = 19.0
text = "Width:"
[node name="WidthValue" type="SpinBox" parent="VBoxContainer/OptionsContainer"]
margin_left = 56.0
margin_right = 130.0
margin_bottom = 24.0
mouse_default_cursor_shape = 2
min_value = 1.0
max_value = 16384.0
value = 64.0
suffix = "px"
[node name="Height" type="Label" parent="VBoxContainer/OptionsContainer"]
margin_top = 33.0
margin_right = 54.0
margin_bottom = 47.0
text = "Height:"
[node name="HeightValue" type="SpinBox" parent="VBoxContainer/OptionsContainer"]
margin_left = 56.0
margin_top = 28.0
margin_right = 130.0
margin_bottom = 52.0
mouse_default_cursor_shape = 2
min_value = 1.0
max_value = 16384.0
value = 64.0
suffix = "px"
2020-06-24 00:21:44 +00:00
[node name="OffsetLabel" type="Label" parent="VBoxContainer/OptionsContainer"]
margin_top = 56.0
margin_right = 54.0
2020-06-24 00:21:44 +00:00
margin_bottom = 70.0
text = "Offset"
[node name="EmptySpacer" type="Control" parent="VBoxContainer/OptionsContainer"]
margin_left = 56.0
2020-06-24 00:21:44 +00:00
margin_top = 56.0
margin_right = 130.0
2020-06-24 00:21:44 +00:00
margin_bottom = 70.0
[node name="XLabel" type="Label" parent="VBoxContainer/OptionsContainer"]
margin_top = 79.0
margin_right = 54.0
2020-06-24 00:21:44 +00:00
margin_bottom = 93.0
text = "X:"
[node name="XSpinBox" type="SpinBox" parent="VBoxContainer/OptionsContainer"]
margin_left = 56.0
2020-06-24 00:21:44 +00:00
margin_top = 74.0
margin_right = 130.0
2020-06-24 00:21:44 +00:00
margin_bottom = 98.0
mouse_default_cursor_shape = 2
max_value = 0.0
suffix = "px"
[node name="YLabel" type="Label" parent="VBoxContainer/OptionsContainer"]
margin_top = 107.0
margin_right = 54.0
2020-06-24 00:21:44 +00:00
margin_bottom = 121.0
text = "Y:"
[node name="YSpinBox" type="SpinBox" parent="VBoxContainer/OptionsContainer"]
margin_left = 56.0
2020-06-24 00:21:44 +00:00
margin_top = 102.0
margin_right = 130.0
2020-06-24 00:21:44 +00:00
margin_bottom = 126.0
mouse_default_cursor_shape = 2
max_value = 0.0
suffix = "px"
[node name="CenterButton" type="Button" parent="VBoxContainer/OptionsContainer"]
margin_top = 130.0
margin_right = 54.0
margin_bottom = 150.0
text = "Center"
[connection signal="confirmed" from="." to="." method="_on_ResizeCanvas_confirmed"]
2020-06-24 00:21:44 +00:00
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/WidthValue" to="." method="_on_WidthValue_value_changed"]
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/HeightValue" to="." method="_on_HeightValue_value_changed"]
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/XSpinBox" to="." method="_on_XSpinBox_value_changed"]
[connection signal="value_changed" from="VBoxContainer/OptionsContainer/YSpinBox" to="." method="_on_YSpinBox_value_changed"]
[connection signal="pressed" from="VBoxContainer/OptionsContainer/CenterButton" to="." method="_on_CenterButton_pressed"]