[gd_scene load_steps=9 format=3 uid="uid://dv5v6jqeuoj3l"]

[ext_resource type="Theme" uid="uid://dmgdeh6kw3b7u" path="res://Resources/Theme/basic_theme.tres" id="1_heawm"]
[ext_resource type="Script" uid="uid://c2cp7ekbv0s6d" path="res://Scripts/window/palette_window.gd" id="1_yhjob"]
[ext_resource type="Shader" uid="uid://muay5jeyd64p" path="res://Resources/Shader/TexturePalette.gdshader" id="3_qeqyr"]
[ext_resource type="PackedScene" uid="uid://cw24rut3p1e2t" path="res://Scenes/panel/StateSelecterPanel.tscn" id="5_3hwyy"]
[ext_resource type="PackedScene" uid="uid://dktf5unru0wec" path="res://Scenes/panel/Canvas2D.tscn" id="5_k5j1t"]
[ext_resource type="Texture2D" uid="uid://c7ikn8lahv8qm" path="res://Resources/UI/add.png" id="9_nkism"]

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3hwyy"]
bg_color = Color(0.14902, 0.14902, 0.14902, 1)

[sub_resource type="ShaderMaterial" id="ShaderMaterial_k5j1t"]
shader = ExtResource("3_qeqyr")
shader_parameter/PaletteCount = 0
shader_parameter/BasicColor = PackedColorArray(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
shader_parameter/ModulateColor = PackedColorArray(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
shader_parameter/Tolerance = PackedFloat32Array(0, 0, 0, 0, 0, 0, 0, 0)
shader_parameter/BlendMode = PackedInt32Array(0, 0, 0, 0, 0, 0, 0, 0)

[node name="PalettePanel" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_yhjob")

[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="HSplitContainer" type="HSplitContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
dragger_visibility = 2

[node name="VSplitContainer" type="VSplitContainer" parent="VBoxContainer/HSplitContainer"]
layout_mode = 2
theme_override_constants/separation = 0
theme_override_constants/autohide = 0
dragger_visibility = 2

[node name="PanelContainer" type="PanelContainer" parent="VBoxContainer/HSplitContainer/VSplitContainer"]
layout_mode = 2
size_flags_vertical = 3
theme = ExtResource("1_heawm")

[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/HSplitContainer/VSplitContainer/PanelContainer"]
layout_mode = 2
size_flags_vertical = 3
theme = ExtResource("1_heawm")

[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HSplitContainer/VSplitContainer/PanelContainer/MarginContainer"]
custom_minimum_size = Vector2(320, 0)
layout_mode = 2

[node name="AvatarTypeCombo" type="OptionButton" parent="VBoxContainer/HSplitContainer/VSplitContainer/PanelContainer/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(320, 0)
layout_mode = 2
theme = ExtResource("1_heawm")
selected = 0
allow_reselect = true
item_count = 5
popup/item_0/text = "Clothes"
popup/item_0/id = 0
popup/item_1/text = "Bodies"
popup/item_1/id = 1
popup/item_2/text = "Heads"
popup/item_2/id = 2
popup/item_3/text = "Hairs"
popup/item_3/id = 3
popup/item_4/text = "Faces"
popup/item_4/id = 4

[node name="HSeparator" type="HSeparator" parent="VBoxContainer/HSplitContainer/VSplitContainer/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2

[node name="AvatarPartListview" type="Tree" parent="VBoxContainer/HSplitContainer/VSplitContainer/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
theme = ExtResource("1_heawm")
columns = 2
column_titles_visible = true
allow_reselect = true
hide_root = true
select_mode = 1

[node name="PanelContainer2" type="PanelContainer" parent="VBoxContainer/HSplitContainer/VSplitContainer"]
layout_mode = 2
size_flags_vertical = 3
theme = ExtResource("1_heawm")

[node name="MarginContainer2" type="MarginContainer" parent="VBoxContainer/HSplitContainer/VSplitContainer/PanelContainer2"]
layout_mode = 2
size_flags_vertical = 3
theme = ExtResource("1_heawm")

[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HSplitContainer/VSplitContainer/PanelContainer2/MarginContainer2"]
custom_minimum_size = Vector2(320, 0)
layout_mode = 2

[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/HSplitContainer/VSplitContainer/PanelContainer2/MarginContainer2/VBoxContainer"]
layout_mode = 2

[node name="RichTextLabel" type="RichTextLabel" parent="VBoxContainer/HSplitContainer/VSplitContainer/PanelContainer2/MarginContainer2/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
bbcode_enabled = true
text = "[font_size=20][b]Palette[/b][/font_size]"
fit_content = true
scroll_active = false

[node name="Control" type="Control" parent="VBoxContainer/HSplitContainer/VSplitContainer/PanelContainer2/MarginContainer2/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3

[node name="Add" type="Button" parent="VBoxContainer/HSplitContainer/VSplitContainer/PanelContainer2/MarginContainer2/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
theme = ExtResource("1_heawm")
icon = ExtResource("9_nkism")
icon_alignment = 1

[node name="HSeparator" type="HSeparator" parent="VBoxContainer/HSplitContainer/VSplitContainer/PanelContainer2/MarginContainer2/VBoxContainer"]
layout_mode = 2

[node name="PaletteListview" type="Tree" parent="VBoxContainer/HSplitContainer/VSplitContainer/PanelContainer2/MarginContainer2/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
columns = 5
column_titles_visible = true
allow_reselect = true
hide_root = true
select_mode = 1

[node name="HSplitContainer" type="HSplitContainer" parent="VBoxContainer/HSplitContainer"]
layout_mode = 2
dragger_visibility = 2

[node name="VSplitContainer" type="VSplitContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer"]
layout_mode = 2
size_flags_horizontal = 3
split_offset = 500
dragger_visibility = 2

[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer"]
custom_minimum_size = Vector2(400, 300)
layout_mode = 2
size_flags_vertical = 3

[node name="PanelContainer2" type="PanelContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer/VBoxContainer"]
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_3hwyy")

[node name="MainContentTabContainer" type="TabBar" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer/VBoxContainer/PanelContainer2"]
layout_mode = 2
theme = ExtResource("1_heawm")
current_tab = 0
tab_count = 2
tab_0/title = "Texture"
tab_1/title = "Icon"

[node name="PanelContainer" type="PanelContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3

[node name="SubViewportContainer" type="SubViewportContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer/VBoxContainer/PanelContainer"]
custom_minimum_size = Vector2(400, 300)
layout_mode = 2
stretch = true
metadata/_tab_index = 2

[node name="SubViewport" type="SubViewport" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer/VBoxContainer/PanelContainer/SubViewportContainer"]
handle_input_locally = false
canvas_item_default_texture_filter = 0
size = Vector2i(1160, 817)
render_target_update_mode = 4

[node name="Canvas2d" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer/VBoxContainer/PanelContainer/SubViewportContainer/SubViewport" instance=ExtResource("5_k5j1t")]
material = SubResource("ShaderMaterial_k5j1t")

[node name="StateSelecter" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer" instance=ExtResource("5_3hwyy")]
layout_mode = 2

[node name="VSplitContainer2" type="VSplitContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer"]
layout_mode = 2
dragger_visibility = 2

[node name="PanelContainer" type="PanelContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2"]
layout_mode = 2
theme = ExtResource("1_heawm")

[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer"]
layout_mode = 2
theme = ExtResource("1_heawm")

[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer/MarginContainer"]
layout_mode = 2

[node name="PalettePropertyRichTextLabel" type="RichTextLabel" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
bbcode_enabled = true
text = "[font_size=20][b]Property [Default][/b][/font_size]"
fit_content = true
scroll_active = false

[node name="HSeparator" type="HSeparator" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer/MarginContainer/VBoxContainer"]
layout_mode = 2

[node name="GridContainer" type="GridContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(320, 0)
layout_mode = 2
columns = 2

[node name="Label" type="Label" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer/MarginContainer/VBoxContainer/GridContainer"]
custom_minimum_size = Vector2(120, 0)
layout_mode = 2
text = "GUID"

[node name="GuidLineEdit" type="LineEdit" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer/MarginContainer/VBoxContainer/GridContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme = ExtResource("1_heawm")
editable = false

[node name="Label5" type="Label" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer/MarginContainer/VBoxContainer/GridContainer"]
layout_mode = 2
text = "Name"

[node name="NameLineEdit" type="LineEdit" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer/MarginContainer/VBoxContainer/GridContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme = ExtResource("1_heawm")

[node name="Label4" type="Label" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer/MarginContainer/VBoxContainer/GridContainer"]
layout_mode = 2
size_flags_vertical = 0
text = "Intro"

[node name="IntroTextEdit" type="TextEdit" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer/MarginContainer/VBoxContainer/GridContainer"]
custom_minimum_size = Vector2(0, 120)
layout_mode = 2
theme = ExtResource("1_heawm")

[node name="PanelContainer2" type="PanelContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2"]
layout_mode = 2
theme = ExtResource("1_heawm")

[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer2"]
layout_mode = 2
theme = ExtResource("1_heawm")

[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer2/MarginContainer"]
custom_minimum_size = Vector2(400, 0)
layout_mode = 2

[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer2/MarginContainer/VBoxContainer"]
layout_mode = 2

[node name="RichTextLabel" type="RichTextLabel" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer2/MarginContainer/VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(180, 0)
layout_mode = 2
bbcode_enabled = true
text = "[font_size=20][b]Palette Param[/b][/font_size]"
fit_content = true
scroll_active = false

[node name="Control" type="Control" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer2/MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3

[node name="Add" type="Button" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer2/MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
theme = ExtResource("1_heawm")
icon = ExtResource("9_nkism")
icon_alignment = 1

[node name="HSeparator" type="HSeparator" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer2/MarginContainer/VBoxContainer"]
layout_mode = 2

[node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer2/MarginContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
horizontal_scroll_mode = 0

[node name="ParamVBoxContainer" type="VBoxContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer2/PanelContainer2/MarginContainer/VBoxContainer/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
