mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 05:34:43 -04:00
Resize image on exporting PNG
Also fixed issue when exporting a spritesheet, spritesheet_rows wasn't being updated if the user didn't change the value of the spinbox
This commit is contained in:
parent
eeaa691d36
commit
1a6f6c1cc9
2 changed files with 53 additions and 7 deletions
|
@ -27,6 +27,40 @@ text = "Export current frame"
|
|||
items = [ "Export current frame", null, false, 0, null, "Export all frames as multiple files", null, false, 1, null, "Export all frames as a spritesheet (single file)", null, false, 2, null ]
|
||||
selected = 0
|
||||
|
||||
[node name="Resize" type="HBoxContainer" parent="."]
|
||||
margin_right = 40.0
|
||||
margin_bottom = 40.0
|
||||
|
||||
[node name="Label" type="Label" parent="Resize"]
|
||||
margin_top = 13.0
|
||||
margin_right = 46.0
|
||||
margin_bottom = 27.0
|
||||
text = "Resize:"
|
||||
|
||||
[node name="ResizeValue" type="SpinBox" parent="Resize"]
|
||||
margin_left = 50.0
|
||||
margin_right = 124.0
|
||||
margin_bottom = 40.0
|
||||
min_value = 10.0
|
||||
max_value = 1000.0
|
||||
step = 10.0
|
||||
value = 100.0
|
||||
suffix = "%"
|
||||
|
||||
[node name="Label2" type="Label" parent="Resize"]
|
||||
margin_left = 128.0
|
||||
margin_top = 13.0
|
||||
margin_right = 215.0
|
||||
margin_bottom = 27.0
|
||||
text = "Interpolation:"
|
||||
|
||||
[node name="Interpolation" type="OptionButton" parent="Resize"]
|
||||
margin_right = 41.0
|
||||
margin_bottom = 20.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
|
||||
|
||||
[node name="Spritesheet" type="HBoxContainer" parent="."]
|
||||
visible = false
|
||||
margin_left = 8.0
|
||||
|
@ -35,19 +69,20 @@ margin_right = 507.0
|
|||
margin_bottom = 312.0
|
||||
|
||||
[node name="Label" type="Label" parent="Spritesheet"]
|
||||
margin_left = 200.0
|
||||
margin_top = 145.0
|
||||
margin_right = 300.0
|
||||
margin_right = 60.0
|
||||
margin_bottom = 159.0
|
||||
text = "Columns:"
|
||||
|
||||
[node name="VerticalFrames" type="SpinBox" parent="Spritesheet"]
|
||||
margin_left = 304.0
|
||||
margin_right = 378.0
|
||||
margin_left = 64.0
|
||||
margin_right = 138.0
|
||||
margin_bottom = 304.0
|
||||
mouse_default_cursor_shape = 2
|
||||
min_value = 1.0
|
||||
value = 1.0
|
||||
[connection signal="file_selected" from="." to="." method="_on_ExportSprites_file_selected"]
|
||||
[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"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue