Choose how many rows or columns when exporting spritesheet

Also made CreateNewImage.tscn, ScaleImage.tscn and OutlineDialogn.tscn scenes of their own, with their respective scripts.
This commit is contained in:
OverloadedOrama 2019-12-30 00:24:37 +02:00
parent 1a6f6c1cc9
commit 3ae679fe00
10 changed files with 396 additions and 340 deletions

View file

@ -41,6 +41,7 @@ text = "Resize:"
margin_left = 50.0
margin_right = 124.0
margin_bottom = 40.0
mouse_default_cursor_shape = 2
min_value = 10.0
max_value = 1000.0
step = 10.0
@ -55,8 +56,9 @@ margin_bottom = 27.0
text = "Interpolation:"
[node name="Interpolation" type="OptionButton" parent="Resize"]
margin_right = 41.0
margin_bottom = 20.0
margin_left = 219.0
margin_right = 303.0
margin_bottom = 40.0
text = "Item 0"
items = [ "Nearest", null, false, 0, null, "Bilinear", null, false, 1, null, "Cubic", null, false, 2, null, "Trilinear", null, false, 3, null, "Lanczos", null, true, 4, null ]
selected = 0
@ -68,15 +70,16 @@ margin_top = 8.0
margin_right = 507.0
margin_bottom = 312.0
[node name="Label" type="Label" parent="Spritesheet"]
margin_top = 145.0
margin_right = 60.0
margin_bottom = 159.0
text = "Columns:"
[node name="ColumnsOrRows" type="OptionButton" parent="Spritesheet"]
margin_right = 97.0
margin_bottom = 304.0
text = "Columns"
items = [ "Columns", null, false, 0, null, "Rows", null, false, 1, null ]
selected = 0
[node name="VerticalFrames" type="SpinBox" parent="Spritesheet"]
margin_left = 64.0
margin_right = 138.0
[node name="Frames" type="SpinBox" parent="Spritesheet"]
margin_left = 101.0
margin_right = 175.0
margin_bottom = 304.0
mouse_default_cursor_shape = 2
min_value = 1.0
@ -85,4 +88,5 @@ value = 1.0
[connection signal="item_selected" from="ExportOption" to="." method="_on_ExportOption_item_selected"]
[connection signal="value_changed" from="Resize/ResizeValue" to="." method="_on_ResizeValue_value_changed"]
[connection signal="item_selected" from="Resize/Interpolation" to="." method="_on_Interpolation_item_selected"]
[connection signal="value_changed" from="Spritesheet/VerticalFrames" to="." method="_on_VerticalFrames_value_changed"]
[connection signal="item_selected" from="Spritesheet/ColumnsOrRows" to="." method="_on_ColumnsOrRows_item_selected"]
[connection signal="value_changed" from="Spritesheet/Frames" to="." method="_on_Frames_value_changed"]