[gd_scene load_steps=10 format=3 uid="uid://65gk0e5w3oyn"]

[ext_resource type="Theme" uid="uid://dmgdeh6kw3b7u" path="res://Resources/Theme/basic_theme.tres" id="1_id3kd"]
[ext_resource type="Script" uid="uid://b4h7aptoeaft1" path="res://Scripts/window/main_work_window.gd" id="1_pd7jo"]
[ext_resource type="PackedScene" uid="uid://dktf5unru0wec" path="res://Scenes/panel/Canvas2D.tscn" id="2_7m3np"]
[ext_resource type="PackedScene" uid="uid://nck01hflbdd5" path="res://Scenes/panel/StateTreePanel.tscn" id="2_7mvj7"]
[ext_resource type="Texture2D" uid="uid://c7ikn8lahv8qm" path="res://Resources/UI/add.png" id="3_0gbwu"]
[ext_resource type="Shader" uid="uid://muay5jeyd64p" path="res://Resources/Shader/TexturePalette.gdshader" id="3_7mvj7"]
[ext_resource type="PackedScene" uid="uid://ele8o7eeuxa4" path="res://Scenes/panel/AssetPanel.tscn" id="6_sc5tx"]
[ext_resource type="PackedScene" uid="uid://b4au6s1figirf" path="res://Scenes/control/LayerSelecter.tscn" id="7_l0tif"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_pd7jo"]
shader = ExtResource("3_7mvj7")
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="MainWorkPanel" type="PanelContainer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_pd7jo")

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

[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer"]
layout_mode = 2
theme = ExtResource("1_id3kd")

[node name="ToolBar" type="HBoxContainer" parent="VBoxContainer/MarginContainer"]
layout_mode = 2

[node name="AvatarTypeCombo" type="OptionButton" parent="VBoxContainer/MarginContainer/ToolBar"]
custom_minimum_size = Vector2(100, 31)
layout_mode = 2
theme = ExtResource("1_id3kd")
selected = 0
fit_to_longest_item = false
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="AvatarPartCombo" type="OptionButton" parent="VBoxContainer/MarginContainer/ToolBar"]
custom_minimum_size = Vector2(255, 31)
layout_mode = 2
theme = ExtResource("1_id3kd")
fit_to_longest_item = false

[node name="AddButton" type="Button" parent="VBoxContainer/MarginContainer/ToolBar"]
layout_mode = 2
theme = ExtResource("1_id3kd")
icon = ExtResource("3_0gbwu")
icon_alignment = 1

[node name="Control" type="Control" parent="VBoxContainer/MarginContainer/ToolBar"]
custom_minimum_size = Vector2(60, 0)
layout_mode = 2

[node name="Label" type="Label" parent="VBoxContainer/MarginContainer/ToolBar"]
layout_mode = 2
text = "Palette"

[node name="PaletteCombo" type="OptionButton" parent="VBoxContainer/MarginContainer/ToolBar"]
custom_minimum_size = Vector2(300, 31)
layout_mode = 2
theme = ExtResource("1_id3kd")

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

[node name="StatePanel" parent="VBoxContainer/HSplitContainer" instance=ExtResource("2_7mvj7")]
layout_mode = 2

[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
dragger_visibility = 2

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

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

[node name="SubViewport" type="SubViewport" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer/PanelContainer/SubViewportContainer"]
disable_3d = true
handle_input_locally = false
screen_space_aa = 1
canvas_item_default_texture_filter = 0
size = Vector2i(1171, 829)
render_target_update_mode = 4

[node name="Canvas2d" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer/PanelContainer/SubViewportContainer/SubViewport" instance=ExtResource("2_7m3np")]
material = SubResource("ShaderMaterial_pd7jo")

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

[node name="AssetPanel" parent="VBoxContainer/HSplitContainer/HSplitContainer/VSplitContainer/PanelContainer2" instance=ExtResource("6_sc5tx")]
layout_mode = 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[node name="RichTextLabel" type="RichTextLabel" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer"]
layout_mode = 2
bbcode_enabled = true
text = "[font_size=20][b]Asset Property[/b][/font_size]"
fit_content = true
scroll_active = false

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

[node name="GridContainer" type="GridContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer"]
layout_mode = 2
columns = 2

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

[node name="AssetLineEdit" type="LineEdit" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme = ExtResource("1_id3kd")
text = "aaa.png"
editable = false

[node name="Label5" type="Label" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer"]
layout_mode = 2
text = "Layer"

[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer"]
layout_mode = 2
size_flags_vertical = 4

[node name="LayerLineEdit" type="LineEdit" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme = ExtResource("1_id3kd")
text = "0"
editable = false

[node name="LayerButton" type="Button" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer/HBoxContainer"]
layout_mode = 2
theme = ExtResource("1_id3kd")
disabled = true
text = "Edit"

[node name="PopupPanel" type="PopupPanel" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer/HBoxContainer/LayerButton"]
auto_translate_mode = 1
position = Vector2i(331, 436)
size = Vector2i(1258, 208)
always_on_top = true

[node name="LayerSelecter" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer/HBoxContainer/LayerButton/PopupPanel" instance=ExtResource("7_l0tif")]
custom_minimum_size = Vector2(1250, 200)
anchors_preset = 15
anchor_left = 0.0
anchor_bottom = 1.0
offset_left = 4.0
offset_top = 4.0
offset_right = 1254.0
offset_bottom = 204.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 0
size_flags_vertical = 0

[node name="Label4" type="Label" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer"]
layout_mode = 2
text = "LayerOffset"

[node name="LayerOffsetSpinBox" type="SpinBox" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer"]
layout_mode = 2
min_value = -65535.0
max_value = 65535.0
rounded = true
editable = false

[node name="Label6" type="Label" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer"]
layout_mode = 2
text = "Position"

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

[node name="Label6" type="Label" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer/HBoxContainer2"]
layout_mode = 2
text = "X"

[node name="PositionXSpinBox" type="SpinBox" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer/HBoxContainer2"]
layout_mode = 2
min_value = -65535.0
max_value = 65535.0
editable = false

[node name="Label7" type="Label" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer/HBoxContainer2"]
layout_mode = 2
text = "   Y"

[node name="PositionYSpinBox" type="SpinBox" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer/HBoxContainer2"]
layout_mode = 2
min_value = -65535.0
max_value = 65535.0
editable = false

[node name="Label8" type="Label" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer"]
layout_mode = 2
text = "Rotation"

[node name="RotationSpinBox" type="SpinBox" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer"]
layout_mode = 2
min_value = -360.0
max_value = 360.0
step = 0.1
editable = false

[node name="Label7" type="Label" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer"]
layout_mode = 2
text = "Scale"

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

[node name="Label6" type="Label" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer/HBoxContainer4"]
layout_mode = 2
text = "X"

[node name="ScaleXSpinBox" type="SpinBox" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer/HBoxContainer4"]
layout_mode = 2
min_value = -65535.0
max_value = 65535.0
step = 0.01
editable = false

[node name="Label7" type="Label" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer/HBoxContainer4"]
layout_mode = 2
text = "   Y"

[node name="ScaleYSpinBox" type="SpinBox" parent="VBoxContainer/HSplitContainer/HSplitContainer/VBoxContainer2/PanelContainer2/MarginContainer/VBoxContainer/GridContainer/HBoxContainer4"]
layout_mode = 2
min_value = -65535.0
max_value = 65535.0
step = 0.01
editable = false
