2020-06-13 17:22:25 +00:00
|
|
|
[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
|
2020-06-24 00:21:44 +00:00
|
|
|
margin_bottom = 152.0
|
2020-06-13 17:22:25 +00:00
|
|
|
|
|
|
|
[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
|
2020-06-24 00:21:44 +00:00
|
|
|
margin_bottom = 144.0
|
2020-06-13 17:22:25 +00:00
|
|
|
custom_constants/vseparation = 4
|
|
|
|
custom_constants/hseparation = 2
|
|
|
|
columns = 2
|
|
|
|
|
|
|
|
[node name="WidthLabel" type="Label" parent="VBoxContainer/OptionsContainer"]
|
|
|
|
margin_top = 5.0
|
|
|
|
margin_right = 46.0
|
|
|
|
margin_bottom = 19.0
|
|
|
|
text = "Width:"
|
|
|
|
|
|
|
|
[node name="WidthValue" type="SpinBox" parent="VBoxContainer/OptionsContainer"]
|
|
|
|
margin_left = 48.0
|
|
|
|
margin_right = 122.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 = 46.0
|
|
|
|
margin_bottom = 47.0
|
|
|
|
text = "Height:"
|
|
|
|
|
|
|
|
[node name="HeightValue" type="SpinBox" parent="VBoxContainer/OptionsContainer"]
|
|
|
|
margin_left = 48.0
|
|
|
|
margin_top = 28.0
|
|
|
|
margin_right = 122.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 = 46.0
|
|
|
|
margin_bottom = 70.0
|
|
|
|
text = "Offset"
|
|
|
|
|
|
|
|
[node name="EmptySpacer" type="Control" parent="VBoxContainer/OptionsContainer"]
|
|
|
|
margin_left = 48.0
|
|
|
|
margin_top = 56.0
|
|
|
|
margin_right = 122.0
|
|
|
|
margin_bottom = 70.0
|
|
|
|
|
|
|
|
[node name="XLabel" type="Label" parent="VBoxContainer/OptionsContainer"]
|
|
|
|
margin_top = 79.0
|
|
|
|
margin_right = 46.0
|
|
|
|
margin_bottom = 93.0
|
|
|
|
text = "X:"
|
|
|
|
|
|
|
|
[node name="XSpinBox" type="SpinBox" parent="VBoxContainer/OptionsContainer"]
|
|
|
|
margin_left = 48.0
|
|
|
|
margin_top = 74.0
|
|
|
|
margin_right = 122.0
|
|
|
|
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 = 46.0
|
|
|
|
margin_bottom = 121.0
|
|
|
|
text = "Y:"
|
|
|
|
|
|
|
|
[node name="YSpinBox" type="SpinBox" parent="VBoxContainer/OptionsContainer"]
|
|
|
|
margin_left = 48.0
|
|
|
|
margin_top = 102.0
|
|
|
|
margin_right = 122.0
|
|
|
|
margin_bottom = 126.0
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
max_value = 0.0
|
|
|
|
suffix = "px"
|
2020-06-13 17:22:25 +00:00
|
|
|
[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"]
|