mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-26 03:14:42 -04:00
Changed Export PNG settings, moved code from Main.gd to ExportSprites.gd
And made ExportSprites.tscn a scene of its own
This commit is contained in:
parent
04fe708560
commit
67631ac648
7 changed files with 162 additions and 144 deletions
28
Prefabs/Dialogs/ExportSprites.tscn
Normal file
28
Prefabs/Dialogs/ExportSprites.tscn
Normal file
|
@ -0,0 +1,28 @@
|
|||
[gd_scene load_steps=2 format=2]
|
||||
|
||||
[ext_resource path="res://Scripts/Dialogs/ExportSprites.gd" type="Script" id=1]
|
||||
|
||||
[node name="ExportSprites" type="FileDialog"]
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
margin_left = -512.0
|
||||
margin_top = -300.0
|
||||
margin_right = 3.0
|
||||
margin_bottom = 48.0
|
||||
resizable = true
|
||||
access = 2
|
||||
filters = PoolStringArray( "*.png ; PNG Image" )
|
||||
current_dir = "C:/Users/Overloaded/Dropbox/Orama Founding Members/εταιρικα αρχεια/Godot Projects/Pixelorama"
|
||||
current_path = "C:/Users/Overloaded/Dropbox/Orama Founding Members/εταιρικα αρχεια/Godot Projects/Pixelorama/"
|
||||
script = ExtResource( 1 )
|
||||
|
||||
[node name="ExportOption" type="OptionButton" parent="."]
|
||||
margin_right = 41.0
|
||||
margin_bottom = 20.0
|
||||
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 horizontal spritesheet (single file)", null, false, 2, null, "Export all frames as a vertical spritesheet (single file)", null, false, 3, null ]
|
||||
selected = 0
|
||||
[connection signal="file_selected" from="." to="." method="_on_ExportSprites_file_selected"]
|
||||
[connection signal="item_selected" from="ExportOption" to="." method="_on_ExportOption_item_selected"]
|
Loading…
Add table
Add a link
Reference in a new issue