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:
OverloadedOrama 2019-12-28 20:30:33 +02:00
parent 04fe708560
commit 67631ac648
7 changed files with 162 additions and 144 deletions

View 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"]

View file

@ -3,7 +3,6 @@
[ext_resource path="res://Scripts/Dialogs/ImportSprites.gd" type="Script" id=1]
[node name="ImportSprites" type="FileDialog"]
editor/display_folded = true
margin_right = 515.0
margin_bottom = 348.0
window_title = "Open File(s)"
@ -16,8 +15,10 @@ current_path = "C:/Users/Overloaded/Dropbox/Orama Founding Members/εταιρι
script = ExtResource( 1 )
[node name="HBoxContainer2" type="HBoxContainer" parent="."]
margin_right = 40.0
margin_bottom = 40.0
margin_left = 8.0
margin_top = 8.0
margin_right = 507.0
margin_bottom = 312.0
[node name="ImportAsNewFrame" type="CheckBox" parent="HBoxContainer2"]
margin_right = 130.0
@ -32,8 +33,10 @@ text = "Import as spritesheet"
[node name="Spritesheet" type="HBoxContainer" parent="."]
visible = false
margin_right = 306.0
margin_bottom = 17.0
margin_left = 8.0
margin_top = 8.0
margin_right = 507.0
margin_bottom = 312.0
[node name="Label" type="Label" parent="Spritesheet"]
margin_top = 1.0