[gd_scene load_steps=54 format=3 uid="uid://c8dsi6ggkqa7a"]

[ext_resource type="PackedScene" uid="uid://byu3rtoipuvoc" path="res://src/UI/Tools/Tools.tscn" id="1"]
[ext_resource type="PackedScene" uid="uid://c546tskdu53j1" path="res://src/UI/Canvas/CanvasPreview.tscn" id="2"]
[ext_resource type="Script" path="res://src/UI/Tabs.gd" id="3"]
[ext_resource type="Script" path="res://src/UI/Canvas/Rulers/VerticalRuler.gd" id="4"]
[ext_resource type="PackedScene" uid="uid://3pmb60gpst7b" path="res://src/UI/Nodes/TransparentChecker.tscn" id="5"]
[ext_resource type="Script" path="res://src/UI/Canvas/Rulers/HorizontalRuler.gd" id="6"]
[ext_resource type="Script" path="res://src/UI/Canvas/CameraMovement.gd" id="7"]
[ext_resource type="Shader" path="res://src/Shaders/Greyscale.gdshader" id="8"]
[ext_resource type="Shader" path="res://src/Shaders/TransparentChecker.gdshader" id="9"]
[ext_resource type="PackedScene" uid="uid://wo0hqxkst808" path="res://src/UI/GlobalToolOptions/GlobalToolOptions.tscn" id="10"]
[ext_resource type="PackedScene" uid="uid://b75xk2ix8xxml" path="res://src/UI/ReferenceImages/ReferencesPanel.tscn" id="11"]
[ext_resource type="PackedScene" uid="uid://cap1bhavhi33g" path="res://src/UI/PerspectiveEditor/PerspectiveEditor.tscn" id="12"]
[ext_resource type="PackedScene" uid="uid://dl6ook010q86o" path="res://src/UI/Recorder/Recorder.tscn" id="13"]
[ext_resource type="Script" path="res://addons/dockable_container/layout.gd" id="14"]
[ext_resource type="PackedScene" uid="uid://ccsihk3yxwei5" path="res://src/UI/CanvasPreviewContainer/CanvasPreviewContainer.tscn" id="16"]
[ext_resource type="PackedScene" uid="uid://c3vcvhh4d8hd7" path="res://src/UI/ColorPickers/ColorPicker.tscn" id="17"]
[ext_resource type="PackedScene" uid="uid://dbr6mulku2qju" path="res://src/UI/Timeline/AnimationTimeline.tscn" id="18"]
[ext_resource type="PackedScene" uid="uid://ba24iuv55m4l3" path="res://src/UI/Canvas/Canvas.tscn" id="19"]
[ext_resource type="PackedScene" uid="uid://wplk62pbgih4" path="res://src/Palette/PalettePanel.tscn" id="20"]
[ext_resource type="Script" path="res://src/UI/ViewportContainer.gd" id="23"]
[ext_resource type="Script" path="res://addons/dockable_container/layout_split.gd" id="27"]
[ext_resource type="Script" path="res://addons/dockable_container/dockable_container.gd" id="35"]
[ext_resource type="Script" path="res://addons/dockable_container/layout_panel.gd" id="36"]
[ext_resource type="Script" path="res://src/UI/UI.gd" id="37"]
[ext_resource type="Shader" path="res://src/Shaders/UITransparency.gdshader" id="38"]

[sub_resource type="ShaderMaterial" id="26"]
shader = ExtResource("38")
shader_parameter/alpha = 0.0
shader_parameter/screen_resolution = Vector2(1280, 720)
shader_parameter/position = Vector2(100, 100)
shader_parameter/size = Vector2(100, 100)

[sub_resource type="Resource" id="Resource_xnnnd"]
resource_name = "Tabs"
script = ExtResource("36")
names = PackedStringArray("Tools", "Reference Images")
current_tab = 0

[sub_resource type="Resource" id="Resource_34hle"]
resource_name = "Tabs"
script = ExtResource("36")
names = PackedStringArray("Main Canvas")
current_tab = 0

[sub_resource type="Resource" id="Resource_l6i6g"]
resource_name = "Tabs"
script = ExtResource("36")
names = PackedStringArray("Perspective Editor")
current_tab = 0

[sub_resource type="Resource" id="Resource_r2r5t"]
resource_name = "Split"
script = ExtResource("27")
direction = 0
percent = 0.5
first = SubResource("Resource_34hle")
second = SubResource("Resource_l6i6g")

[sub_resource type="Resource" id="Resource_k7omi"]
resource_name = "Tabs"
script = ExtResource("36")
names = PackedStringArray("Second Canvas")
current_tab = 0

[sub_resource type="Resource" id="Resource_l142s"]
resource_name = "Split"
script = ExtResource("27")
direction = 0
percent = 0.980952
first = SubResource("Resource_r2r5t")
second = SubResource("Resource_k7omi")

[sub_resource type="Resource" id="Resource_wobi1"]
resource_name = "Tabs"
script = ExtResource("36")
names = PackedStringArray("Animation Timeline")
current_tab = 0

[sub_resource type="Resource" id="Resource_85y6p"]
resource_name = "Split"
script = ExtResource("27")
direction = 1
percent = 0.74711
first = SubResource("Resource_l142s")
second = SubResource("Resource_wobi1")

[sub_resource type="Resource" id="Resource_4egp5"]
resource_name = "Tabs"
script = ExtResource("36")
names = PackedStringArray("Canvas Preview")
current_tab = 0

[sub_resource type="Resource" id="Resource_fcw5v"]
resource_name = "Tabs"
script = ExtResource("36")
names = PackedStringArray("Color Picker")
current_tab = 0

[sub_resource type="Resource" id="Resource_c7hpy"]
resource_name = "Tabs"
script = ExtResource("36")
names = PackedStringArray("Global Tool Options")
current_tab = 0

[sub_resource type="Resource" id="Resource_56tpw"]
resource_name = "Tabs"
script = ExtResource("36")
names = PackedStringArray("Recorder")
current_tab = 0

[sub_resource type="Resource" id="Resource_fhmn0"]
resource_name = "Split"
script = ExtResource("27")
direction = 1
percent = 0.5
first = SubResource("Resource_c7hpy")
second = SubResource("Resource_56tpw")

[sub_resource type="Resource" id="Resource_u1u2a"]
resource_name = "Split"
script = ExtResource("27")
direction = 1
percent = 0.5
first = SubResource("Resource_fcw5v")
second = SubResource("Resource_fhmn0")

[sub_resource type="Resource" id="Resource_6eonw"]
resource_name = "Split"
script = ExtResource("27")
direction = 1
percent = 0.911765
first = SubResource("Resource_4egp5")
second = SubResource("Resource_u1u2a")

[sub_resource type="Resource" id="Resource_6pwxm"]
resource_name = "Tabs"
script = ExtResource("36")
names = PackedStringArray("Left Tool Options")
current_tab = 0

[sub_resource type="Resource" id="Resource_24rfh"]
resource_name = "Tabs"
script = ExtResource("36")
names = PackedStringArray("Right Tool Options")
current_tab = 0

[sub_resource type="Resource" id="Resource_tcb26"]
resource_name = "Split"
script = ExtResource("27")
direction = 0
percent = 0.5
first = SubResource("Resource_6pwxm")
second = SubResource("Resource_24rfh")

[sub_resource type="Resource" id="Resource_ugja0"]
resource_name = "Tabs"
script = ExtResource("36")
names = PackedStringArray("Palettes")
current_tab = 0

[sub_resource type="Resource" id="Resource_hr77s"]
resource_name = "Split"
script = ExtResource("27")
direction = 1
percent = 0.692661
first = SubResource("Resource_tcb26")
second = SubResource("Resource_ugja0")

[sub_resource type="Resource" id="Resource_l8roh"]
resource_name = "Split"
script = ExtResource("27")
direction = 1
percent = 0.339595
first = SubResource("Resource_6eonw")
second = SubResource("Resource_hr77s")

[sub_resource type="Resource" id="Resource_s2xu6"]
resource_name = "Split"
script = ExtResource("27")
direction = 0
percent = 0.727569
first = SubResource("Resource_85y6p")
second = SubResource("Resource_l8roh")

[sub_resource type="Resource" id="Resource_cwe4h"]
resource_name = "Split"
script = ExtResource("27")
direction = 0
percent = 0.0103806
first = SubResource("Resource_xnnnd")
second = SubResource("Resource_s2xu6")

[sub_resource type="Resource" id="Resource_b6o2t"]
resource_name = "Layout"
script = ExtResource("14")
root = SubResource("Resource_cwe4h")
hidden_tabs = {
"Canvas Preview": true,
"Color Picker Sliders": true,
"Perspective Editor": true,
"Recorder": true,
"Second Canvas": true
}

[sub_resource type="ShaderMaterial" id="2"]
shader = ExtResource("9")
shader_parameter/size = 10.0
shader_parameter/alpha = 1.0
shader_parameter/color1 = Color(0.7, 0.7, 0.7, 1)
shader_parameter/color2 = Color(1, 1, 1, 1)
shader_parameter/offset = Vector2(0, 0)
shader_parameter/scale = Vector2(0, 0)
shader_parameter/rect_size = Vector2(0, 0)
shader_parameter/follow_movement = false
shader_parameter/follow_scale = false

[sub_resource type="ShaderMaterial" id="27"]
shader = ExtResource("8")

[sub_resource type="ShaderMaterial" id="3"]
shader = ExtResource("9")
shader_parameter/size = 10.0
shader_parameter/alpha = 1.0
shader_parameter/color1 = Color(0.7, 0.7, 0.7, 1)
shader_parameter/color2 = Color(1, 1, 1, 1)
shader_parameter/offset = Vector2(0, 0)
shader_parameter/scale = Vector2(0, 0)
shader_parameter/rect_size = Vector2(0, 0)
shader_parameter/follow_movement = false
shader_parameter/follow_scale = false

[node name="UI" type="Panel"]
material = SubResource("26")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource("37")

[node name="DockableContainer" type="Container" parent="."]
layout_mode = 0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 8.0
offset_right = -8.0
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource("35")
tabs_visible = false
layout = SubResource("Resource_b6o2t")

[node name="Tools" parent="DockableContainer" instance=ExtResource("1")]
layout_mode = 2

[node name="Main Canvas" type="VBoxContainer" parent="DockableContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/separation = 0

[node name="TabsContainer" type="PanelContainer" parent="DockableContainer/Main Canvas"]
layout_mode = 2

[node name="TabBar" type="TabBar" parent="DockableContainer/Main Canvas/TabsContainer"]
layout_mode = 2
tab_close_display_policy = 2
drag_to_rearrange_enabled = true
script = ExtResource("3")

[node name="HorizontalRuler" type="Button" parent="DockableContainer/Main Canvas"]
custom_minimum_size = Vector2(0, 16)
layout_mode = 2
focus_mode = 0
mouse_default_cursor_shape = 14
theme_type_variation = &"RulerButton"
action_mode = 0
script = ExtResource("6")

[node name="ViewportandVerticalRuler" type="HBoxContainer" parent="DockableContainer/Main Canvas"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/separation = 0

[node name="VerticalRuler" type="Button" parent="DockableContainer/Main Canvas/ViewportandVerticalRuler"]
custom_minimum_size = Vector2(16, 0)
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 3
focus_mode = 0
mouse_default_cursor_shape = 15
theme_type_variation = &"RulerButton"
action_mode = 0
script = ExtResource("4")

[node name="SubViewportContainer" type="SubViewportContainer" parent="DockableContainer/Main Canvas/ViewportandVerticalRuler"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
focus_mode = 2
mouse_default_cursor_shape = 3
stretch = true
script = ExtResource("23")
camera_path = NodePath("SubViewport/Camera2D")

[node name="SubViewport" type="SubViewport" parent="DockableContainer/Main Canvas/ViewportandVerticalRuler/SubViewportContainer"]
handle_input_locally = false
canvas_item_default_texture_filter = 0
size = Vector2i(867, 513)
render_target_update_mode = 4

[node name="TransparentChecker" parent="DockableContainer/Main Canvas/ViewportandVerticalRuler/SubViewportContainer/SubViewport" instance=ExtResource("5")]
material = SubResource("2")
anchors_preset = 0

[node name="Canvas" parent="DockableContainer/Main Canvas/ViewportandVerticalRuler/SubViewportContainer/SubViewport" instance=ExtResource("19")]

[node name="Camera2D" type="Camera2D" parent="DockableContainer/Main Canvas/ViewportandVerticalRuler/SubViewportContainer/SubViewport"]
zoom = Vector2(0.15, 0.15)
script = ExtResource("7")

[node name="CanvasLayer" type="CanvasLayer" parent="DockableContainer/Main Canvas/ViewportandVerticalRuler/SubViewportContainer/SubViewport"]

[node name="GreyscaleVision" type="ColorRect" parent="DockableContainer/Main Canvas/ViewportandVerticalRuler/SubViewportContainer/SubViewport/CanvasLayer"]
visible = false
material = SubResource("27")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_right = 40.0
offset_bottom = 40.0
mouse_filter = 2

[node name="Second Canvas" type="SubViewportContainer" parent="DockableContainer"]
visible = false
layout_mode = 2
size_flags_vertical = 3
stretch = true
script = ExtResource("23")
camera_path = NodePath("SubViewport/Camera2D2")

[node name="SubViewport" type="SubViewport" parent="DockableContainer/Second Canvas"]
handle_input_locally = false
canvas_item_default_texture_filter = 0
size = Vector2i(2, 2)
render_target_update_mode = 0

[node name="TransparentChecker" parent="DockableContainer/Second Canvas/SubViewport" instance=ExtResource("5")]
material = SubResource("3")
anchors_preset = 0

[node name="CanvasPreview" parent="DockableContainer/Second Canvas/SubViewport" instance=ExtResource("2")]

[node name="Camera2D2" type="Camera2D" parent="DockableContainer/Second Canvas/SubViewport"]
zoom = Vector2(0.15, 0.15)
script = ExtResource("7")
index = 1

[node name="Animation Timeline" parent="DockableContainer" instance=ExtResource("18")]
layout_mode = 2

[node name="Canvas Preview" parent="DockableContainer" instance=ExtResource("16")]
visible = false
layout_mode = 2

[node name="Color Picker" parent="DockableContainer" instance=ExtResource("17")]
layout_mode = 2

[node name="Global Tool Options" parent="DockableContainer" instance=ExtResource("10")]
layout_mode = 2

[node name="Left Tool Options" type="ScrollContainer" parent="DockableContainer"]
custom_minimum_size = Vector2(72, 72)
layout_mode = 2

[node name="LeftPanelContainer" type="MarginContainer" parent="DockableContainer/Left Tool Options"]
custom_minimum_size = Vector2(130, 0)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="Right Tool Options" type="ScrollContainer" parent="DockableContainer"]
custom_minimum_size = Vector2(72, 72)
layout_mode = 2

[node name="RightPanelContainer" type="MarginContainer" parent="DockableContainer/Right Tool Options"]
custom_minimum_size = Vector2(130, 0)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3

[node name="Palettes" parent="DockableContainer" instance=ExtResource("20")]
layout_mode = 2

[node name="Reference Images" parent="DockableContainer" instance=ExtResource("11")]
visible = false
layout_mode = 2

[node name="Perspective Editor" parent="DockableContainer" instance=ExtResource("12")]
visible = false
layout_mode = 2

[node name="Recorder" parent="DockableContainer" instance=ExtResource("13")]
visible = false
layout_mode = 2

[connection signal="item_rect_changed" from="DockableContainer/Main Canvas" to="." method="_on_main_canvas_item_rect_changed"]
[connection signal="visibility_changed" from="DockableContainer/Main Canvas" to="." method="_on_main_canvas_visibility_changed"]
[connection signal="active_tab_rearranged" from="DockableContainer/Main Canvas/TabsContainer/TabBar" to="DockableContainer/Main Canvas/TabsContainer/TabBar" method="_on_active_tab_rearranged"]
[connection signal="tab_changed" from="DockableContainer/Main Canvas/TabsContainer/TabBar" to="DockableContainer/Main Canvas/TabsContainer/TabBar" method="_on_Tabs_tab_changed"]
[connection signal="tab_close_pressed" from="DockableContainer/Main Canvas/TabsContainer/TabBar" to="DockableContainer/Main Canvas/TabsContainer/TabBar" method="_on_tab_close_pressed"]
[connection signal="mouse_entered" from="DockableContainer/Main Canvas/HorizontalRuler" to="DockableContainer/Main Canvas/HorizontalRuler" method="_on_HorizontalRuler_mouse_entered"]
[connection signal="pressed" from="DockableContainer/Main Canvas/HorizontalRuler" to="DockableContainer/Main Canvas/HorizontalRuler" method="_on_HorizontalRuler_pressed"]
[connection signal="pressed" from="DockableContainer/Main Canvas/ViewportandVerticalRuler/VerticalRuler" to="DockableContainer/Main Canvas/ViewportandVerticalRuler/VerticalRuler" method="_on_VerticalRuler_pressed"]
[connection signal="mouse_entered" from="DockableContainer/Main Canvas/ViewportandVerticalRuler/SubViewportContainer" to="DockableContainer/Main Canvas/ViewportandVerticalRuler/SubViewportContainer" method="_on_ViewportContainer_mouse_entered"]
[connection signal="mouse_exited" from="DockableContainer/Main Canvas/ViewportandVerticalRuler/SubViewportContainer" to="DockableContainer/Main Canvas/ViewportandVerticalRuler/SubViewportContainer" method="_on_ViewportContainer_mouse_exited"]
[connection signal="mouse_entered" from="DockableContainer/Second Canvas" to="DockableContainer/Second Canvas" method="_on_ViewportContainer_mouse_entered"]
[connection signal="mouse_exited" from="DockableContainer/Second Canvas" to="DockableContainer/Second Canvas" method="_on_ViewportContainer_mouse_exited"]
