[gd_scene load_steps=2 format=3 uid="uid://68aakj2l6ee1"]

[ext_resource type="Script" path="res://src/Palette/CreatePaletteDialog.gd" id="1"]

[node name="CreatePaletteDialog" type="ConfirmationDialog"]
title = "Create a new palette"
size = Vector2i(386, 406)
script = ExtResource("1")

[node name="VBoxContainer" type="VBoxContainer" parent="."]
anchors_preset = -1
anchor_left = 0.000793701
anchor_right = 0.000793701
offset_left = 7.69363
offset_top = 8.0
offset_right = 377.694
offset_bottom = 361.0

[node name="PaletteMetadata" type="GridContainer" parent="VBoxContainer"]
layout_mode = 2
columns = 2

[node name="PresetLabel" type="Label" parent="VBoxContainer/PaletteMetadata"]
custom_minimum_size = Vector2(0, 24)
layout_mode = 2
text = "Preset:"

[node name="Preset" type="OptionButton" parent="VBoxContainer/PaletteMetadata"]
custom_minimum_size = Vector2(0, 24)
layout_mode = 2
size_flags_horizontal = 3
item_count = 4
selected = 0
popup/item_0/text = "Empty"
popup/item_0/id = 0
popup/item_1/text = "From Current Palette"
popup/item_1/id = 1
popup/item_2/text = "From Current Sprite"
popup/item_2/id = 2
popup/item_3/text = "From Current Selection"
popup/item_3/id = 3

[node name="NameLabel" type="Label" parent="VBoxContainer/PaletteMetadata"]
custom_minimum_size = Vector2(50, 0)
layout_mode = 2
text = "Name:"

[node name="Name" type="LineEdit" parent="VBoxContainer/PaletteMetadata"]
custom_minimum_size = Vector2(0, 24)
layout_mode = 2
size_flags_horizontal = 3

[node name="CommentLabel" type="Label" parent="VBoxContainer/PaletteMetadata"]
custom_minimum_size = Vector2(50, 0)
layout_mode = 2
text = "Comment:"

[node name="Comment" type="TextEdit" parent="VBoxContainer/PaletteMetadata"]
custom_minimum_size = Vector2(0, 75)
layout_mode = 2
size_flags_horizontal = 3

[node name="WidthLabel" type="Label" parent="VBoxContainer/PaletteMetadata"]
layout_mode = 2
text = "Width:"

[node name="Width" type="SpinBox" parent="VBoxContainer/PaletteMetadata"]
custom_minimum_size = Vector2(0, 24)
layout_mode = 2
size_flags_horizontal = 3
min_value = 1.0
max_value = 64.0
value = 1.0

[node name="HeightLabel" type="Label" parent="VBoxContainer/PaletteMetadata"]
layout_mode = 2
text = "Height:"

[node name="Height" type="SpinBox" parent="VBoxContainer/PaletteMetadata"]
custom_minimum_size = Vector2(0, 24)
layout_mode = 2
size_flags_horizontal = 3
min_value = 1.0
max_value = 64.0
value = 1.0

[node name="ColorsSettings" type="VBoxContainer" parent="VBoxContainer"]
layout_mode = 2

[node name="HSeparator" type="HSeparator" parent="VBoxContainer/ColorsSettings"]
layout_mode = 2

[node name="AddAlphaColors" type="CheckBox" parent="VBoxContainer/ColorsSettings"]
custom_minimum_size = Vector2(0, 24)
layout_mode = 2
text = "Create colors with alpha component"

[node name="GetColorsFrom" type="HBoxContainer" parent="VBoxContainer/ColorsSettings"]
layout_mode = 2

[node name="GetColorsFromLabel" type="Label" parent="VBoxContainer/ColorsSettings/GetColorsFrom"]
layout_mode = 2
text = "Get colors from:"

[node name="GetColorsFrom" type="OptionButton" parent="VBoxContainer/ColorsSettings/GetColorsFrom"]
custom_minimum_size = Vector2(0, 24)
layout_mode = 2
size_flags_horizontal = 3
mouse_default_cursor_shape = 2
item_count = 3
popup/item_0/text = "Current frame"
popup/item_0/id = 0
popup/item_1/text = "Selected cels"
popup/item_1/id = 1
popup/item_2/text = "All frames"
popup/item_2/id = 2

[node name="AlreadyExistsWarning" type="Label" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 7
theme_override_colors/font_color = Color(1, 0.603922, 0.603922, 1)
text = "Palette with the same name and path already exists!"
horizontal_alignment = 1
vertical_alignment = 2

[node name="EnterNameWarning" type="Label" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 7
theme_override_colors/font_color = Color(1, 0.603922, 0.603922, 1)
text = "Palette name is required!"
horizontal_alignment = 1
vertical_alignment = 2

[connection signal="confirmed" from="." to="." method="_on_CreatePaletteDialog_confirmed"]
[connection signal="visibility_changed" from="." to="." method="_on_CreatePaletteDialog_visibility_changed"]
[connection signal="item_selected" from="VBoxContainer/PaletteMetadata/Preset" to="." method="_on_Preset_item_selected"]
[connection signal="text_changed" from="VBoxContainer/PaletteMetadata/Name" to="." method="_on_Name_text_changed"]
