-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpriteImporter.tscn
385 lines (312 loc) · 19.9 KB
/
SpriteImporter.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
[gd_scene load_steps=4 format=3 uid="uid://k8kx0lbjm1hj"]
[sub_resource type="GDScript" id="GDScript_8qf63"]
resource_name = "Sparrow"
script/source = "@tool
extends SpritesheetBase
func convert_sprite(tex:Texture2D, atlas_path:String):
var atlas:XMLParser = XMLParser.new()
atlas.open(atlas_path)
while atlas.read() == FAILED:
printerr(\"Atlas failed loading at given path.\")
return
var sprite_frames:SpriteFrames = SpriteFrames.new()
sprite_frames.remove_animation(\"default\")
await RenderingServer.frame_pre_draw
var dupped_frame_count:int = 0
var last_frame:AtlasTexture = AtlasTexture.new()
last_frame.atlas = tex
var rotated_img:Image = tex.get_image()
rotated_img.rotate_90(COUNTERCLOCKWISE)
var rotated_tex:ImageTexture = ImageTexture.create_from_image(rotated_img)
while atlas.read() == OK:
if atlas.get_node_type() != XMLParser.NODE_ELEMENT: continue
var node_name:String = atlas.get_node_name().to_lower()
if node_name != \"subtexture\":
continue
var frame:SparrowFrame = SparrowFrame.new()
# gets the animation name without the 4 characters (frame index)
frame.anim_name = atlas.get_named_attribute_value(\"name\").left(-4)
frame.atlas_texture.atlas = tex
if !sprite_frames.has_animation(frame.anim_name):
sprite_frames.add_animation(frame.anim_name)
sprite_frames.set_animation_loop(frame.anim_name,loop.button_pressed)
sprite_frames.set_animation_speed(frame.anim_name,fps.value)
frame.atlas_texture.region = Rect2(
atlas.get_named_attribute_value(\"x\").to_float(),
atlas.get_named_attribute_value(\"y\").to_float(),
atlas.get_named_attribute_value(\"width\").to_float(),
atlas.get_named_attribute_value(\"height\").to_float()
)
frame.atlas_texture.filter_clip = true
frame.is_rotated = atlas.get_named_attribute_value_safe(\"rotated\") == \"true\"
#if frame.is_rotated:
#frame.atlas_texture.atlas = rotated_tex
if check_dupped.button_pressed and frame.atlas_texture == last_frame:
dupped_frame_count += 1
frame.atlas_texture = last_frame
if atlas.has_attribute(\"frameX\"):
frame.atlas_texture.margin = Rect2(
-atlas.get_named_attribute_value_safe(\"frameX\").to_float(),
-atlas.get_named_attribute_value_safe(\"frameY\").to_float(),
atlas.get_named_attribute_value_safe(\"frameWidth\").to_float() - frame.atlas_texture.region.size.x,
atlas.get_named_attribute_value_safe(\"frameHeight\").to_float() - frame.atlas_texture.region.size.y
)
last_frame = frame.atlas_texture
sprite_frames.add_frame(frame.anim_name,frame.atlas_texture)
var save_path:String = tex.resource_path.get_basename()+(\".tres\" if !compress_output.button_pressed else \".res\")
ResourceSaver.save(sprite_frames,save_path,ResourceSaver.FLAG_NONE if !compress_output.button_pressed else ResourceSaver.FLAG_COMPRESS)
if ResourceLoader.exists(save_path):
print(\"SpriteFrame succesfully created at path: \"+save_path+\"\\nFound \"+str(dupped_frame_count)+\" dupped frames.\")
"
[sub_resource type="Image" id="Image_ghn3g"]
data = {
"data": PackedByteArray(255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 184, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 181, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 73, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 181, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 255, 255, 255, 0, 255, 255, 255, 0, 224, 224, 224, 181, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 255, 224, 224, 224, 180, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0, 255, 255, 255, 0),
"format": "RGBA8",
"height": 16,
"mipmaps": false,
"width": 16
}
[sub_resource type="ImageTexture" id="ImageTexture_qffyh"]
image = SubResource("Image_ghn3g")
[node name="SpriteImporter" type="Control"]
custom_minimum_size = Vector2(0, 350)
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
[node name="TabContainer" type="TabContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
current_tab = 3
use_hidden_tabs_for_min_size = true
[node name="Sparrow" type="VBoxContainer" parent="TabContainer" node_paths=PackedStringArray("sprite_path", "fps", "loop", "check_dupped", "compress_output")]
visible = false
visibility_layer = 5
layout_mode = 2
script = SubResource("GDScript_8qf63")
atlas_format = ".xml"
sprite_path = NodePath("ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer/PathContainer/LineEdit")
fps = NodePath("ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer/FPS/SpinBox")
loop = NodePath("ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer/Loop")
check_dupped = NodePath("ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer/Dupped")
compress_output = NodePath("ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer/Compress")
metadata/_tab_index = 0
[node name="ScrollContainer" type="ScrollContainer" parent="TabContainer/Sparrow"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/Sparrow/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="HSplitContainer" type="HSplitContainer" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/minimum_grab_thickness = 12
[node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer"]
custom_minimum_size = Vector2(378, 260)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 0
[node name="Label" type="Label" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 22
text = "Importing"
[node name="PathContainer" type="HBoxContainer" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer"]
layout_mode = 2
alignment = 2
[node name="Label" type="Label" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer/PathContainer"]
layout_mode = 2
text = "Sprite Path:"
vertical_alignment = 1
[node name="LineEdit" type="LineEdit" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer/PathContainer"]
layout_mode = 2
size_flags_horizontal = 3
tooltip_text = "Set the path for the sprite"
placeholder_text = "res://path/to/sprite.extension"
[node name="Folder" type="Button" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer/PathContainer"]
layout_mode = 2
tooltip_text = "Search through files"
icon = SubResource("ImageTexture_qffyh")
[node name="PathNameReminder" type="Label" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer"]
modulate = Color(1, 1, 0, 0.529412)
layout_mode = 2
text = "*Atlas & Sprite need to have the same name"
[node name="DirectoryReminder" type="Label" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer"]
modulate = Color(0.423529, 0.423529, 0.423529, 1)
layout_mode = 2
text = "*If the path is a folder, all the sprites will convert"
[node name="FPS" type="HBoxContainer" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
tooltip_text = "Framerate in which the animations are saved"
[node name="Label" type="Label" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer/FPS"]
layout_mode = 2
size_flags_vertical = 1
text = "Frame Rate:"
vertical_alignment = 1
[node name="SpinBox" type="SpinBox" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer/FPS"]
layout_mode = 2
max_value = 2.14748e+09
value = 24.0
suffix = "FPS"
[node name="Dupped" type="CheckBox" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 0
tooltip_text = "Skips re-parsing duplicated frames. Highly recommended"
button_pressed = true
text = "Skip Duplicated"
[node name="Loop" type="CheckBox" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 0
text = "Loop"
[node name="Compress" type="CheckBox" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 0
tooltip_text = "Compresses the SpriteFrames into a .res file for smaller file size, tho it makes the file unreadable externally."
text = "Compress Output"
[node name="VBoxContainer2" type="VBoxContainer" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Label" type="Label" parent="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer2"]
layout_mode = 2
theme_override_font_sizes/font_size = 22
text = "Animation Tree"
[node name="Convert" type="Button" parent="TabContainer/Sparrow"]
layout_mode = 2
size_flags_vertical = 8
text = "Import"
[node name="Texture Atlas" type="TabBar" parent="TabContainer"]
visible = false
visibility_layer = 5
layout_mode = 2
metadata/_tab_index = 1
metadata/_edit_lock_ = true
[node name="Label" type="Label" parent="TabContainer/Texture Atlas"]
layout_mode = 0
offset_left = 21.0
offset_top = 11.0
offset_right = 133.0
offset_bottom = 34.0
text = "Yet to be done"
[node name="Aseprite" type="TabBar" parent="TabContainer"]
visible = false
visibility_layer = 5
layout_mode = 2
metadata/_tab_index = 2
metadata/_edit_lock_ = true
[node name="Misc" type="TabContainer" parent="TabContainer"]
layout_mode = 2
current_tab = 0
metadata/_tab_index = 3
[node name="SpriteFrames to Animation" type="VBoxContainer" parent="TabContainer/Misc"]
layout_mode = 2
metadata/_tab_index = 0
[node name="ScrollContainer" type="ScrollContainer" parent="TabContainer/Misc/SpriteFrames to Animation"]
layout_mode = 2
size_flags_vertical = 3
[node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="PathContainer" type="HBoxContainer" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/PathContainer"]
layout_mode = 2
text = "SpriteFrames Path:"
[node name="LineEdit" type="LineEdit" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/PathContainer"]
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "res://path/to/SpriteFrames.tres"
[node name="Button" type="Button" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/PathContainer"]
layout_mode = 2
text = "Choose"
[node name="ModeContainer" type="HBoxContainer" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/ModeContainer"]
layout_mode = 2
text = "Selection Mode:"
[node name="OptionButton" type="OptionButton" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/ModeContainer"]
layout_mode = 2
size_flags_horizontal = 3
selected = 0
item_count = 3
popup/item_0/text = "Select all animations"
popup/item_0/id = 0
popup/item_1/text = "Select onl animations checked below"
popup/item_1/id = 1
popup/item_2/text = "Select all animations except ones checked below"
popup/item_2/id = 2
[node name="ModeListContainer" type="HBoxContainer" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="ScrollContainer" type="ScrollContainer" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/ModeListContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="PanelContainer" type="PanelContainer" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/ModeListContainer/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="VBoxContainer" type="VBoxContainer" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/ModeListContainer/ScrollContainer/PanelContainer"]
layout_mode = 2
[node name="CheckBox" type="CheckBox" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/ModeListContainer/ScrollContainer/PanelContainer/VBoxContainer"]
layout_mode = 2
text = "dasasasdsadsdsad"
[node name="NodePathContainer" type="HBoxContainer" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/NodePathContainer"]
layout_mode = 2
text = "Specify an AnimatedSprite node directly or select from the list below:"
[node name="LineEdit" type="LineEdit" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/NodePathContainer"]
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "Path/To/AnimatedSprite"
[node name="NodePathSelection" type="ItemList" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
auto_height = true
item_count = 2
item_0/text = "Path/To/AnimatedSprite2D"
item_1/text = "Path/To/AnimatedSprite3D"
[node name="AnimationPlayerPath" type="HBoxContainer" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/AnimationPlayerPath"]
layout_mode = 2
text = "Specify the AnimationPlayer's root node directly or select an AnimationPlayer from the list below:"
[node name="LineEdit" type="LineEdit" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/AnimationPlayerPath"]
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "Path/To/Root/Node"
[node name="AnimationPlayerSelection" type="ItemList" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
auto_height = true
item_count = 2
item_0/text = "Path/To/AnimatedSprite2D"
item_1/text = "Path/To/AnimatedSprite3D"
[node name="OutputContainer" type="HBoxContainer" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer"]
layout_mode = 2
[node name="Label" type="Label" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/OutputContainer"]
layout_mode = 2
text = "Output:"
[node name="LineEdit" type="LineEdit" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/OutputContainer"]
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "res://path/to/output.tres"
[node name="Button" type="Button" parent="TabContainer/Misc/SpriteFrames to Animation/ScrollContainer/VBoxContainer/OutputContainer"]
layout_mode = 2
text = "Choose Folder"
[node name="SaveButton" type="Button" parent="TabContainer/Misc/SpriteFrames to Animation"]
layout_mode = 2
text = "Create Animations off SpriteFrames"
[connection signal="pressed" from="TabContainer/Sparrow/ScrollContainer/VBoxContainer/HSplitContainer/VBoxContainer/PathContainer/Folder" to="TabContainer/Sparrow" method="folder_button"]
[connection signal="pressed" from="TabContainer/Sparrow/Convert" to="TabContainer/Sparrow" method="on_button_press"]