2020-06-13 17:58:43 +00:00
|
|
|
|
[gd_scene load_steps=2 format=2]
|
|
|
|
|
|
|
|
|
|
[ext_resource path="res://src/UI/Dialogs/PreviewDialog.gd" type="Script" id=1]
|
|
|
|
|
|
|
|
|
|
[node name="PreviewDialog" type="ConfirmationDialog"]
|
2022-02-25 14:08:11 +00:00
|
|
|
|
margin_right = 550.0
|
|
|
|
|
margin_bottom = 410.0
|
2020-06-16 14:59:56 +00:00
|
|
|
|
rect_min_size = Vector2( 550, 70 )
|
2020-06-13 17:58:43 +00:00
|
|
|
|
popup_exclusive = true
|
2020-06-17 13:47:24 +00:00
|
|
|
|
window_title = "Import Options"
|
2020-06-13 17:58:43 +00:00
|
|
|
|
resizable = true
|
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
__meta__ = {
|
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-16 14:59:56 +00:00
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
2020-06-13 17:58:43 +00:00
|
|
|
|
anchor_right = 1.0
|
2020-06-16 14:59:56 +00:00
|
|
|
|
anchor_bottom = 1.0
|
2020-06-13 17:58:43 +00:00
|
|
|
|
margin_left = 8.0
|
|
|
|
|
margin_top = 8.0
|
|
|
|
|
margin_right = -8.0
|
2020-06-16 14:59:56 +00:00
|
|
|
|
margin_bottom = -36.0
|
2020-06-13 17:58:43 +00:00
|
|
|
|
__meta__ = {
|
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
|
}
|
|
|
|
|
|
2020-06-16 14:59:56 +00:00
|
|
|
|
[node name="CenterContainer" type="CenterContainer" parent="VBoxContainer"]
|
2020-07-14 00:33:01 +00:00
|
|
|
|
margin_right = 534.0
|
2020-06-16 14:59:56 +00:00
|
|
|
|
margin_bottom = 300.0
|
2021-12-28 21:45:46 +00:00
|
|
|
|
size_flags_vertical = 3
|
2020-06-16 14:59:56 +00:00
|
|
|
|
__meta__ = {
|
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/CenterContainer"]
|
2020-07-14 00:33:01 +00:00
|
|
|
|
margin_left = 117.0
|
|
|
|
|
margin_right = 417.0
|
2020-06-13 17:58:43 +00:00
|
|
|
|
margin_bottom = 300.0
|
|
|
|
|
rect_min_size = Vector2( 300, 300 )
|
|
|
|
|
expand = true
|
|
|
|
|
stretch_mode = 6
|
|
|
|
|
__meta__ = {
|
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
|
}
|
2020-06-16 14:59:56 +00:00
|
|
|
|
|
2020-06-16 15:30:01 +00:00
|
|
|
|
[node name="HorizLines" type="Control" parent="VBoxContainer/CenterContainer/TextureRect"]
|
2021-12-28 21:45:46 +00:00
|
|
|
|
__meta__ = {
|
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
|
}
|
2020-06-16 15:30:01 +00:00
|
|
|
|
|
|
|
|
|
[node name="VerticalLines" type="Control" parent="VBoxContainer/CenterContainer/TextureRect"]
|
|
|
|
|
|
2022-02-25 14:08:11 +00:00
|
|
|
|
[node name="ApplyAll" type="CheckBox" parent="VBoxContainer"]
|
|
|
|
|
visible = false
|
2020-06-16 14:59:56 +00:00
|
|
|
|
margin_top = 304.0
|
2020-07-14 00:33:01 +00:00
|
|
|
|
margin_right = 534.0
|
2022-02-25 14:08:11 +00:00
|
|
|
|
margin_bottom = 324.0
|
|
|
|
|
text = "Apply to all ?"
|
|
|
|
|
|
|
|
|
|
[node name="SizeContainer" type="HBoxContainer" parent="VBoxContainer"]
|
|
|
|
|
margin_top = 328.0
|
|
|
|
|
margin_right = 534.0
|
|
|
|
|
margin_bottom = 342.0
|
2020-06-24 22:22:26 +00:00
|
|
|
|
custom_constants/separation = 32
|
|
|
|
|
|
|
|
|
|
[node name="ImageSizeLabel" type="Label" parent="VBoxContainer/SizeContainer"]
|
2020-07-13 18:17:08 +00:00
|
|
|
|
margin_right = 118.0
|
2020-06-24 22:22:26 +00:00
|
|
|
|
margin_bottom = 14.0
|
|
|
|
|
text = "Image Size: 64×64"
|
|
|
|
|
|
|
|
|
|
[node name="FrameSizeLabel" type="Label" parent="VBoxContainer/SizeContainer"]
|
|
|
|
|
visible = false
|
|
|
|
|
margin_left = 149.0
|
|
|
|
|
margin_right = 266.0
|
|
|
|
|
margin_bottom = 14.0
|
|
|
|
|
text = "Frame size: 64×64"
|
|
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
2022-02-25 14:08:11 +00:00
|
|
|
|
margin_top = 346.0
|
2020-07-14 00:33:01 +00:00
|
|
|
|
margin_right = 534.0
|
2022-02-25 14:08:11 +00:00
|
|
|
|
margin_bottom = 366.0
|
2020-06-16 14:59:56 +00:00
|
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
|
|
|
|
|
margin_top = 3.0
|
|
|
|
|
margin_right = 66.0
|
|
|
|
|
margin_bottom = 17.0
|
|
|
|
|
text = "Import as:"
|
|
|
|
|
|
|
|
|
|
[node name="ImportOption" type="OptionButton" parent="VBoxContainer/HBoxContainer"]
|
|
|
|
|
margin_left = 70.0
|
|
|
|
|
margin_right = 151.0
|
|
|
|
|
margin_bottom = 20.0
|
2020-06-16 15:30:01 +00:00
|
|
|
|
mouse_default_cursor_shape = 2
|
2020-06-16 14:59:56 +00:00
|
|
|
|
text = "New tab"
|
|
|
|
|
|
2021-02-07 14:43:44 +00:00
|
|
|
|
[node name="SpritesheetTabOptions" type="HBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
2020-06-16 14:59:56 +00:00
|
|
|
|
visible = false
|
|
|
|
|
margin_left = 155.0
|
|
|
|
|
margin_right = 533.0
|
|
|
|
|
margin_bottom = 24.0
|
|
|
|
|
|
2021-02-07 14:43:44 +00:00
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/SpritesheetTabOptions"]
|
2020-06-16 14:59:56 +00:00
|
|
|
|
margin_top = 5.0
|
|
|
|
|
margin_right = 118.0
|
|
|
|
|
margin_bottom = 19.0
|
|
|
|
|
text = "Horizontal frames:"
|
|
|
|
|
|
2021-02-07 14:43:44 +00:00
|
|
|
|
[node name="HorizontalFrames" type="SpinBox" parent="VBoxContainer/HBoxContainer/SpritesheetTabOptions"]
|
2020-06-16 14:59:56 +00:00
|
|
|
|
margin_left = 122.0
|
|
|
|
|
margin_right = 196.0
|
|
|
|
|
margin_bottom = 24.0
|
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
|
min_value = 1.0
|
|
|
|
|
value = 1.0
|
|
|
|
|
|
2021-02-07 14:43:44 +00:00
|
|
|
|
[node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer/SpritesheetTabOptions"]
|
2020-06-16 14:59:56 +00:00
|
|
|
|
margin_left = 200.0
|
|
|
|
|
margin_top = 5.0
|
|
|
|
|
margin_right = 300.0
|
|
|
|
|
margin_bottom = 19.0
|
|
|
|
|
text = "Vertical frames:"
|
|
|
|
|
|
2021-02-07 14:43:44 +00:00
|
|
|
|
[node name="VerticalFrames" type="SpinBox" parent="VBoxContainer/HBoxContainer/SpritesheetTabOptions"]
|
2020-06-16 14:59:56 +00:00
|
|
|
|
margin_left = 304.0
|
|
|
|
|
margin_right = 378.0
|
|
|
|
|
margin_bottom = 24.0
|
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
|
min_value = 1.0
|
|
|
|
|
value = 1.0
|
2020-06-22 12:57:42 +00:00
|
|
|
|
|
2021-02-07 14:43:44 +00:00
|
|
|
|
[node name="SpritesheetLayerOptions" type="HBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
|
|
|
|
visible = false
|
|
|
|
|
margin_left = 155.0
|
2021-03-15 01:41:02 +00:00
|
|
|
|
margin_right = 307.0
|
2021-02-07 14:43:44 +00:00
|
|
|
|
margin_bottom = 24.0
|
|
|
|
|
|
|
|
|
|
[node name="Label3" type="Label" parent="VBoxContainer/HBoxContainer/SpritesheetLayerOptions"]
|
|
|
|
|
margin_top = 5.0
|
2021-03-15 01:41:02 +00:00
|
|
|
|
margin_right = 74.0
|
2021-02-07 14:43:44 +00:00
|
|
|
|
margin_bottom = 19.0
|
2021-03-15 01:41:02 +00:00
|
|
|
|
text = "Start frame:"
|
2021-02-07 14:43:44 +00:00
|
|
|
|
|
|
|
|
|
[node name="AtFrameSpinbox" type="SpinBox" parent="VBoxContainer/HBoxContainer/SpritesheetLayerOptions"]
|
2021-03-15 01:41:02 +00:00
|
|
|
|
margin_left = 78.0
|
|
|
|
|
margin_right = 152.0
|
2021-02-07 14:43:44 +00:00
|
|
|
|
margin_bottom = 24.0
|
|
|
|
|
min_value = 1.0
|
|
|
|
|
value = 1.0
|
|
|
|
|
|
2020-06-22 12:57:42 +00:00
|
|
|
|
[node name="NewFrameOptions" type="HBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
|
|
|
|
visible = false
|
|
|
|
|
margin_left = 155.0
|
|
|
|
|
margin_right = 286.0
|
|
|
|
|
margin_bottom = 24.0
|
|
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/NewFrameOptions"]
|
|
|
|
|
margin_top = 5.0
|
|
|
|
|
margin_right = 53.0
|
|
|
|
|
margin_bottom = 19.0
|
|
|
|
|
text = "At layer:"
|
|
|
|
|
|
|
|
|
|
[node name="AtLayerSpinbox" type="SpinBox" parent="VBoxContainer/HBoxContainer/NewFrameOptions"]
|
|
|
|
|
margin_left = 57.0
|
|
|
|
|
margin_right = 131.0
|
|
|
|
|
margin_bottom = 24.0
|
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
|
max_value = 0.0
|
|
|
|
|
|
2021-02-07 14:43:44 +00:00
|
|
|
|
[node name="ReplaceFrameOptions" type="HBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
|
|
|
|
visible = false
|
|
|
|
|
margin_left = 155.0
|
2021-03-15 01:41:02 +00:00
|
|
|
|
margin_right = 427.0
|
2021-02-07 14:43:44 +00:00
|
|
|
|
margin_bottom = 24.0
|
|
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/ReplaceFrameOptions"]
|
|
|
|
|
margin_top = 5.0
|
2021-03-15 01:41:02 +00:00
|
|
|
|
margin_right = 53.0
|
2021-02-07 14:43:44 +00:00
|
|
|
|
margin_bottom = 19.0
|
2021-03-15 01:41:02 +00:00
|
|
|
|
text = "At layer:"
|
2021-02-07 14:43:44 +00:00
|
|
|
|
|
|
|
|
|
[node name="AtLayerSpinbox" type="SpinBox" parent="VBoxContainer/HBoxContainer/ReplaceFrameOptions"]
|
2021-03-15 01:41:02 +00:00
|
|
|
|
margin_left = 57.0
|
|
|
|
|
margin_right = 131.0
|
2021-02-07 14:43:44 +00:00
|
|
|
|
margin_bottom = 24.0
|
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
|
max_value = 0.0
|
|
|
|
|
|
|
|
|
|
[node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer/ReplaceFrameOptions"]
|
2021-03-15 01:41:02 +00:00
|
|
|
|
margin_left = 135.0
|
2021-02-07 14:43:44 +00:00
|
|
|
|
margin_top = 5.0
|
2021-03-15 01:41:02 +00:00
|
|
|
|
margin_right = 194.0
|
2021-02-07 14:43:44 +00:00
|
|
|
|
margin_bottom = 19.0
|
2021-03-15 01:41:02 +00:00
|
|
|
|
text = "At frame:"
|
2021-02-07 14:43:44 +00:00
|
|
|
|
|
|
|
|
|
[node name="AtFrameSpinbox" type="SpinBox" parent="VBoxContainer/HBoxContainer/ReplaceFrameOptions"]
|
2021-03-15 01:41:02 +00:00
|
|
|
|
margin_left = 198.0
|
|
|
|
|
margin_right = 272.0
|
2021-02-07 14:43:44 +00:00
|
|
|
|
margin_bottom = 24.0
|
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
|
min_value = 1.0
|
|
|
|
|
max_value = 0.0
|
|
|
|
|
value = 1.0
|
|
|
|
|
|
2020-06-22 12:57:42 +00:00
|
|
|
|
[node name="NewLayerOptions" type="HBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
|
|
|
|
visible = false
|
|
|
|
|
margin_left = 155.0
|
2020-07-13 18:17:08 +00:00
|
|
|
|
margin_right = 292.0
|
2020-06-22 12:57:42 +00:00
|
|
|
|
margin_bottom = 24.0
|
|
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/NewLayerOptions"]
|
|
|
|
|
margin_top = 5.0
|
2020-07-13 18:17:08 +00:00
|
|
|
|
margin_right = 59.0
|
2020-06-22 12:57:42 +00:00
|
|
|
|
margin_bottom = 19.0
|
|
|
|
|
text = "At frame:"
|
|
|
|
|
|
|
|
|
|
[node name="AtFrameSpinbox" type="SpinBox" parent="VBoxContainer/HBoxContainer/NewLayerOptions"]
|
2020-07-13 18:17:08 +00:00
|
|
|
|
margin_left = 63.0
|
|
|
|
|
margin_right = 137.0
|
2020-06-22 12:57:42 +00:00
|
|
|
|
margin_bottom = 24.0
|
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
|
min_value = 1.0
|
|
|
|
|
max_value = 1.0
|
|
|
|
|
value = 1.0
|
2020-07-13 18:17:08 +00:00
|
|
|
|
|
|
|
|
|
[node name="NewBrushOptions" type="HBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
|
|
|
|
visible = false
|
|
|
|
|
margin_left = 155.0
|
2021-03-15 01:41:02 +00:00
|
|
|
|
margin_right = 324.0
|
|
|
|
|
margin_bottom = 20.0
|
2020-07-13 18:17:08 +00:00
|
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/NewBrushOptions"]
|
2021-03-15 01:41:02 +00:00
|
|
|
|
margin_top = 3.0
|
2020-07-13 18:17:08 +00:00
|
|
|
|
margin_right = 73.0
|
2021-03-15 01:41:02 +00:00
|
|
|
|
margin_bottom = 17.0
|
2020-07-13 18:17:08 +00:00
|
|
|
|
text = "Brush type:"
|
|
|
|
|
|
|
|
|
|
[node name="BrushTypeOption" type="OptionButton" parent="VBoxContainer/HBoxContainer/NewBrushOptions"]
|
|
|
|
|
margin_left = 77.0
|
|
|
|
|
margin_right = 169.0
|
2021-03-15 01:41:02 +00:00
|
|
|
|
margin_bottom = 20.0
|
2020-07-13 18:17:08 +00:00
|
|
|
|
mouse_default_cursor_shape = 2
|
|
|
|
|
text = "File brush"
|
2020-07-14 00:33:01 +00:00
|
|
|
|
items = [ "File brush", null, false, 0, null, "Project brush", null, false, 1, null, "Random brush", null, false, 2, null ]
|
2020-07-13 18:17:08 +00:00
|
|
|
|
selected = 0
|
2020-07-14 00:33:01 +00:00
|
|
|
|
|
|
|
|
|
[node name="BrushName" type="HBoxContainer" parent="VBoxContainer/HBoxContainer/NewBrushOptions"]
|
|
|
|
|
visible = false
|
|
|
|
|
margin_left = 173.0
|
|
|
|
|
margin_right = 316.0
|
|
|
|
|
margin_bottom = 24.0
|
|
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/NewBrushOptions/BrushName"]
|
|
|
|
|
margin_top = 5.0
|
|
|
|
|
margin_right = 81.0
|
|
|
|
|
margin_bottom = 19.0
|
|
|
|
|
text = "Brush name:"
|
|
|
|
|
|
|
|
|
|
[node name="BrushNameLineEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer/NewBrushOptions/BrushName"]
|
|
|
|
|
margin_left = 85.0
|
|
|
|
|
margin_right = 143.0
|
|
|
|
|
margin_bottom = 24.0
|
2021-12-28 21:45:46 +00:00
|
|
|
|
|
2020-06-13 17:58:43 +00:00
|
|
|
|
[connection signal="about_to_show" from="." to="." method="_on_PreviewDialog_about_to_show"]
|
|
|
|
|
[connection signal="confirmed" from="." to="." method="_on_PreviewDialog_confirmed"]
|
|
|
|
|
[connection signal="popup_hide" from="." to="." method="_on_PreviewDialog_popup_hide"]
|
2022-02-25 14:08:11 +00:00
|
|
|
|
[connection signal="toggled" from="VBoxContainer/ApplyAll" to="." method="_on_ApplyAll_toggled"]
|
2020-06-16 14:59:56 +00:00
|
|
|
|
[connection signal="item_selected" from="VBoxContainer/HBoxContainer/ImportOption" to="." method="_on_ImportOption_item_selected"]
|
2021-02-07 14:43:44 +00:00
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/SpritesheetTabOptions/HorizontalFrames" to="." method="_on_HorizontalFrames_value_changed"]
|
|
|
|
|
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/SpritesheetTabOptions/VerticalFrames" to="." method="_on_VerticalFrames_value_changed"]
|
2020-07-14 00:33:01 +00:00
|
|
|
|
[connection signal="item_selected" from="VBoxContainer/HBoxContainer/NewBrushOptions/BrushTypeOption" to="." method="_on_BrushTypeOption_item_selected"]
|