mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-03-06 03:23:14 +00:00
266 lines
9.5 KiB
Text
266 lines
9.5 KiB
Text
[gd_scene load_steps=5 format=3 uid="uid://nba3nryom3ud"]
|
||
|
||
[ext_resource type="Script" path="res://src/UI/Dialogs/PreviewDialog.gd" id="1"]
|
||
[ext_resource type="Script" path="res://src/UI/Dialogs/HelperScripts/RowColumnLines.gd" id="2_fni44"]
|
||
[ext_resource type="Script" path="res://src/UI/Dialogs/HelperScripts/SmartSlicePreview.gd" id="3_lsglt"]
|
||
[ext_resource type="Script" path="res://src/UI/Nodes/ValueSlider.gd" id="4_e0gk1"]
|
||
|
||
[node name="PreviewDialog" type="ConfirmationDialog"]
|
||
canvas_item_default_texture_filter = 0
|
||
size = Vector2i(316, 417)
|
||
script = ExtResource("1")
|
||
|
||
[node name="VBoxContainer" type="VBoxContainer" parent="."]
|
||
anchors_preset = 15
|
||
anchor_right = 1.0
|
||
anchor_bottom = 1.0
|
||
offset_left = 8.0
|
||
offset_top = 8.0
|
||
offset_right = -8.0
|
||
offset_bottom = -49.0
|
||
|
||
[node name="AspectRatioContainer" type="AspectRatioContainer" parent="VBoxContainer"]
|
||
layout_mode = 2
|
||
size_flags_vertical = 3
|
||
|
||
[node name="TextureRect" type="TextureRect" parent="VBoxContainer/AspectRatioContainer"]
|
||
custom_minimum_size = Vector2(300, 300)
|
||
layout_mode = 2
|
||
expand_mode = 1
|
||
stretch_mode = 5
|
||
|
||
[node name="RowColumnLines" type="Control" parent="VBoxContainer/AspectRatioContainer/TextureRect"]
|
||
unique_name_in_owner = true
|
||
anchors_preset = 0
|
||
offset_right = 40.0
|
||
offset_bottom = 40.0
|
||
script = ExtResource("2_fni44")
|
||
|
||
[node name="SmartSlice" type="Control" parent="VBoxContainer/AspectRatioContainer/TextureRect"]
|
||
unique_name_in_owner = true
|
||
layout_mode = 1
|
||
anchors_preset = 15
|
||
anchor_right = 1.0
|
||
anchor_bottom = 1.0
|
||
grow_horizontal = 2
|
||
grow_vertical = 2
|
||
script = ExtResource("3_lsglt")
|
||
|
||
[node name="ApplyAll" type="CheckBox" parent="VBoxContainer"]
|
||
visible = false
|
||
layout_mode = 2
|
||
text = "Apply to all"
|
||
|
||
[node name="SizeContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||
layout_mode = 2
|
||
theme_override_constants/separation = 32
|
||
|
||
[node name="ImageSizeLabel" type="Label" parent="VBoxContainer/SizeContainer"]
|
||
layout_mode = 2
|
||
text = "Image Size: 64×64"
|
||
|
||
[node name="FrameSizeLabel" type="Label" parent="VBoxContainer/SizeContainer"]
|
||
visible = false
|
||
layout_mode = 2
|
||
text = "Frame size: 64×64"
|
||
|
||
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
|
||
layout_mode = 2
|
||
|
||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer"]
|
||
layout_mode = 2
|
||
size_flags_vertical = 0
|
||
text = "Import as:"
|
||
|
||
[node name="ImportOption" type="OptionButton" parent="VBoxContainer/HBoxContainer"]
|
||
layout_mode = 2
|
||
size_flags_vertical = 0
|
||
mouse_default_cursor_shape = 2
|
||
|
||
[node name="SpritesheetTabOptions" type="GridContainer" parent="VBoxContainer/HBoxContainer"]
|
||
visible = false
|
||
layout_mode = 2
|
||
size_flags_horizontal = 3
|
||
|
||
[node name="Manual" type="HBoxContainer" parent="VBoxContainer/HBoxContainer/SpritesheetTabOptions"]
|
||
layout_mode = 2
|
||
|
||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/SpritesheetTabOptions/Manual"]
|
||
layout_mode = 2
|
||
text = "Horizontal frames:"
|
||
|
||
[node name="HorizontalFrames" type="SpinBox" parent="VBoxContainer/HBoxContainer/SpritesheetTabOptions/Manual"]
|
||
layout_mode = 2
|
||
mouse_default_cursor_shape = 2
|
||
min_value = 1.0
|
||
value = 1.0
|
||
|
||
[node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer/SpritesheetTabOptions/Manual"]
|
||
layout_mode = 2
|
||
text = "Vertical frames:"
|
||
|
||
[node name="VerticalFrames" type="SpinBox" parent="VBoxContainer/HBoxContainer/SpritesheetTabOptions/Manual"]
|
||
layout_mode = 2
|
||
mouse_default_cursor_shape = 2
|
||
min_value = 1.0
|
||
value = 1.0
|
||
|
||
[node name="SmartOptions" type="HBoxContainer" parent="VBoxContainer/HBoxContainer/SpritesheetTabOptions"]
|
||
unique_name_in_owner = true
|
||
visible = false
|
||
layout_mode = 2
|
||
size_flags_horizontal = 3
|
||
|
||
[node name="Threshold" type="TextureProgressBar" parent="VBoxContainer/HBoxContainer/SpritesheetTabOptions/SmartOptions"]
|
||
layout_mode = 2
|
||
size_flags_horizontal = 3
|
||
tooltip_text = "Images that have any one side smaller than this value will cross the threshold"
|
||
focus_mode = 2
|
||
theme_type_variation = &"ValueSlider"
|
||
value = 10.0
|
||
allow_greater = true
|
||
nine_patch_stretch = true
|
||
stretch_margin_left = 3
|
||
stretch_margin_top = 3
|
||
stretch_margin_right = 3
|
||
stretch_margin_bottom = 3
|
||
script = ExtResource("4_e0gk1")
|
||
prefix = "Threshold:"
|
||
suffix = "px"
|
||
|
||
[node name="MergeDist" type="TextureProgressBar" parent="VBoxContainer/HBoxContainer/SpritesheetTabOptions/SmartOptions"]
|
||
layout_mode = 2
|
||
size_flags_horizontal = 3
|
||
tooltip_text = "Images which crossed the threshold will get merged into a larger image, if they are within this distance"
|
||
focus_mode = 2
|
||
theme_type_variation = &"ValueSlider"
|
||
value = 3.0
|
||
nine_patch_stretch = true
|
||
stretch_margin_left = 3
|
||
stretch_margin_top = 3
|
||
stretch_margin_right = 3
|
||
stretch_margin_bottom = 3
|
||
script = ExtResource("4_e0gk1")
|
||
prefix = "Merge distance:"
|
||
suffix = "px"
|
||
|
||
[node name="Slice" type="Button" parent="VBoxContainer/HBoxContainer/SpritesheetTabOptions/SmartOptions"]
|
||
layout_mode = 2
|
||
mouse_default_cursor_shape = 2
|
||
text = "Refresh"
|
||
|
||
[node name="SmartSliceButton" type="CheckBox" parent="VBoxContainer/HBoxContainer/SpritesheetTabOptions"]
|
||
unique_name_in_owner = true
|
||
layout_mode = 2
|
||
mouse_default_cursor_shape = 2
|
||
text = "Smart Slice"
|
||
|
||
[node name="SpritesheetLayerOptions" type="HBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
||
visible = false
|
||
layout_mode = 2
|
||
|
||
[node name="Label3" type="Label" parent="VBoxContainer/HBoxContainer/SpritesheetLayerOptions"]
|
||
layout_mode = 2
|
||
size_flags_vertical = 0
|
||
text = "Start frame:"
|
||
|
||
[node name="AtFrameSpinbox" type="SpinBox" parent="VBoxContainer/HBoxContainer/SpritesheetLayerOptions"]
|
||
layout_mode = 2
|
||
size_flags_vertical = 0
|
||
min_value = 1.0
|
||
value = 1.0
|
||
|
||
[node name="NewFrameOptions" type="HBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
||
visible = false
|
||
layout_mode = 2
|
||
|
||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/NewFrameOptions"]
|
||
layout_mode = 2
|
||
text = "At layer:"
|
||
|
||
[node name="AtLayerOption" type="OptionButton" parent="VBoxContainer/HBoxContainer/NewFrameOptions"]
|
||
layout_mode = 2
|
||
mouse_default_cursor_shape = 2
|
||
|
||
[node name="ReplaceCelOptions" type="HBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
||
visible = false
|
||
layout_mode = 2
|
||
|
||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/ReplaceCelOptions"]
|
||
layout_mode = 2
|
||
text = "At layer:"
|
||
|
||
[node name="AtLayerOption" type="OptionButton" parent="VBoxContainer/HBoxContainer/ReplaceCelOptions"]
|
||
layout_mode = 2
|
||
mouse_default_cursor_shape = 2
|
||
|
||
[node name="Label2" type="Label" parent="VBoxContainer/HBoxContainer/ReplaceCelOptions"]
|
||
layout_mode = 2
|
||
text = "At frame:"
|
||
|
||
[node name="AtFrameSpinbox" type="SpinBox" parent="VBoxContainer/HBoxContainer/ReplaceCelOptions"]
|
||
layout_mode = 2
|
||
mouse_default_cursor_shape = 2
|
||
min_value = 1.0
|
||
max_value = 1.0
|
||
value = 1.0
|
||
|
||
[node name="NewLayerOptions" type="HBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
||
visible = false
|
||
layout_mode = 2
|
||
|
||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/NewLayerOptions"]
|
||
layout_mode = 2
|
||
text = "At frame:"
|
||
|
||
[node name="AtFrameSpinbox" type="SpinBox" parent="VBoxContainer/HBoxContainer/NewLayerOptions"]
|
||
layout_mode = 2
|
||
mouse_default_cursor_shape = 2
|
||
min_value = 1.0
|
||
max_value = 1.0
|
||
value = 1.0
|
||
|
||
[node name="NewBrushOptions" type="HBoxContainer" parent="VBoxContainer/HBoxContainer"]
|
||
visible = false
|
||
layout_mode = 2
|
||
|
||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/NewBrushOptions"]
|
||
layout_mode = 2
|
||
text = "Brush type:"
|
||
|
||
[node name="BrushTypeOption" type="OptionButton" parent="VBoxContainer/HBoxContainer/NewBrushOptions"]
|
||
layout_mode = 2
|
||
mouse_default_cursor_shape = 2
|
||
item_count = 3
|
||
selected = 0
|
||
popup/item_0/text = "File brush"
|
||
popup/item_0/id = 0
|
||
popup/item_1/text = "Project brush"
|
||
popup/item_1/id = 1
|
||
popup/item_2/text = "Random brush"
|
||
popup/item_2/id = 2
|
||
|
||
[node name="BrushName" type="HBoxContainer" parent="VBoxContainer/HBoxContainer/NewBrushOptions"]
|
||
visible = false
|
||
layout_mode = 2
|
||
|
||
[node name="Label" type="Label" parent="VBoxContainer/HBoxContainer/NewBrushOptions/BrushName"]
|
||
layout_mode = 2
|
||
text = "Brush name:"
|
||
|
||
[node name="BrushNameLineEdit" type="LineEdit" parent="VBoxContainer/HBoxContainer/NewBrushOptions/BrushName"]
|
||
layout_mode = 2
|
||
|
||
[connection signal="about_to_popup" from="." to="." method="_on_PreviewDialog_about_to_show"]
|
||
[connection signal="confirmed" from="." to="." method="_on_PreviewDialog_confirmed"]
|
||
[connection signal="size_changed" from="." to="." method="_on_size_changed"]
|
||
[connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]
|
||
[connection signal="toggled" from="VBoxContainer/ApplyAll" to="." method="_on_ApplyAll_toggled"]
|
||
[connection signal="item_selected" from="VBoxContainer/HBoxContainer/ImportOption" to="." method="_on_ImportOption_item_selected"]
|
||
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/SpritesheetTabOptions/Manual/HorizontalFrames" to="." method="_on_HorizontalFrames_value_changed"]
|
||
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/SpritesheetTabOptions/Manual/VerticalFrames" to="." method="_on_VerticalFrames_value_changed"]
|
||
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/SpritesheetTabOptions/SmartOptions/Threshold" to="." method="_on_threshold_value_changed"]
|
||
[connection signal="value_changed" from="VBoxContainer/HBoxContainer/SpritesheetTabOptions/SmartOptions/MergeDist" to="." method="_on_merge_dist_value_changed"]
|
||
[connection signal="pressed" from="VBoxContainer/HBoxContainer/SpritesheetTabOptions/SmartOptions/Slice" to="." method="_on_slice_pressed"]
|
||
[connection signal="toggled" from="VBoxContainer/HBoxContainer/SpritesheetTabOptions/SmartSliceButton" to="." method="_on_smart_slice_toggled"]
|
||
[connection signal="item_selected" from="VBoxContainer/HBoxContainer/NewBrushOptions/BrushTypeOption" to="." method="_on_BrushTypeOption_item_selected"]
|