[gd_scene load_steps=4 format=3 uid="uid://b8c8qe2xi5m24"]

[ext_resource type="Script" uid="uid://g3xgdtvbtg2f" path="res://run/main.gd" id="1_t8dga"]
[ext_resource type="Material" uid="uid://wr6g6bhw2fyj" path="res://content/mat_imagine.tres" id="2_vt7r5"]
[ext_resource type="PackedScene" uid="uid://b3hvp2t36d4eo" path="res://content/value_slider.tscn" id="3_vt7r5"]

[node name="Main" 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_t8dga")
shader = ExtResource("2_vt7r5")
metadata/_edit_vertical_guides_ = [-140.0]

[node name="ColorRect" type="ColorRect" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)

[node name="LoadImageDialog" type="FileDialog" parent="."]
unique_name_in_owner = true
oversampling_override = 1.0
title = "Open File(s)"
dialog_hide_on_ok = true
file_mode = 1
access = 2
filters = PackedStringArray("*.png")
use_native_dialog = true
hidden_files_toggle_enabled = false
file_filter_toggle_enabled = false
file_sort_options_enabled = false
folder_creation_enabled = false
favorites_enabled = false

[node name="SaveFXDialog" type="FileDialog" parent="."]
unique_name_in_owner = true
oversampling_override = 1.0
dialog_hide_on_ok = true
access = 2
filters = PackedStringArray("*.tres")
use_native_dialog = true
hidden_files_toggle_enabled = false
file_filter_toggle_enabled = false
file_sort_options_enabled = false
folder_creation_enabled = false
favorites_enabled = false

[node name="LoadFXDialog" type="FileDialog" parent="."]
unique_name_in_owner = true
oversampling_override = 1.0
title = "Open a File"
dialog_hide_on_ok = true
file_mode = 0
access = 2
filters = PackedStringArray("*.tres")
use_native_dialog = true
hidden_files_toggle_enabled = false
file_filter_toggle_enabled = false
file_sort_options_enabled = false
folder_creation_enabled = false
favorites_enabled = false

[node name="SaveConfirmPopup" type="AcceptDialog" parent="."]
unique_name_in_owner = true
oversampling_override = 1.0
title = "Effects saved"
initial_position = 1
size = Vector2i(283, 100)
unresizable = true
popup_window = true
popup_wm_hint = true
ok_button_text = "OK"

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

[node name="PreviewSide" type="MarginContainer" parent="MainSplit"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 3.0
theme_override_constants/margin_left = 8
theme_override_constants/margin_top = 8
theme_override_constants/margin_right = 8
theme_override_constants/margin_bottom = 8

[node name="Label" type="Label" parent="MainSplit/PreviewSide"]
layout_mode = 2
size_flags_vertical = 0
theme_override_colors/font_color = Color(0.14406255, 0.14406255, 0.14406249, 1)
text = "All images in 2560x1440 format. Press [F] for fullscreen preview"
horizontal_alignment = 1

[node name="PreviewWindow" type="AspectRatioContainer" parent="MainSplit/PreviewSide"]
layout_mode = 2
ratio = 1.7778

[node name="PreviewImage" type="ColorRect" parent="MainSplit/PreviewSide/PreviewWindow"]
material = ExtResource("2_vt7r5")
layout_mode = 2

[node name="ControlSide" type="PanelContainer" parent="MainSplit"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3

[node name="MarginContainer" type="MarginContainer" parent="MainSplit/ControlSide"]
layout_mode = 2
theme_override_constants/margin_left = 4
theme_override_constants/margin_top = 4
theme_override_constants/margin_right = 4
theme_override_constants/margin_bottom = 4

[node name="VBoxContainer" type="VBoxContainer" parent="MainSplit/ControlSide/MarginContainer"]
layout_mode = 2

[node name="TitleLabel" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer"]
custom_minimum_size = Vector2(0, 50)
layout_mode = 2
text = "Imagine Composer"
horizontal_alignment = 1

[node name="FileContainer" type="FoldableContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer"]
layout_mode = 2
title = "File"

[node name="VBoxContainer" type="VBoxContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FileContainer"]
layout_mode = 2

[node name="ImageList" type="ItemList" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FileContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
auto_height = true
max_columns = 2
same_column_width = true
icon_mode = 0
fixed_icon_size = Vector2i(128, 72)

[node name="HBoxContainer2" type="HBoxContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FileContainer/VBoxContainer"]
layout_mode = 2

[node name="LoadImageButton" type="Button" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FileContainer/VBoxContainer/HBoxContainer2"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
text = "Load Image"

[node name="LoadFXButton" type="Button" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FileContainer/VBoxContainer/HBoxContainer2"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
text = "Load FX"

[node name="HBoxContainer" type="HBoxContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FileContainer/VBoxContainer"]
layout_mode = 2

[node name="SaveFXButton" type="Button" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FileContainer/VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
text = "Save FX"

[node name="SaveFXAsButton" type="Button" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FileContainer/VBoxContainer/HBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
text = "Save FX As"

[node name="NewFXButton" type="Button" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FileContainer/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
text = "New FX"

[node name="FXFileLabel" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FileContainer/VBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(100, 0)
layout_mode = 2
theme_override_colors/font_color = Color(0.4828605, 0.36364812, 1, 1)
theme_override_font_sizes/font_size = 12
text = "unsaved FX"
horizontal_alignment = 1
autowrap_mode = 1

[node name="FX Container" type="FoldableContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer"]
layout_mode = 2
title = "Effects"

[node name="VBoxContainer" type="VBoxContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container"]
layout_mode = 2

[node name="Params" type="VBoxContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2

[node name="Label" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params"]
layout_mode = 2
text = "Noise"
horizontal_alignment = 1

[node name="TimeScale" type="HBoxContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params"]
layout_mode = 2

[node name="Label" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/TimeScale"]
custom_minimum_size = Vector2(110, 20)
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 12
text = "Time Scale"

[node name="ResetButton" type="Button" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/TimeScale"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 8
text = "reset"

[node name="Slider" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/TimeScale" instance=ExtResource("3_vt7r5")]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.0
max_value = 0.1
step = 0.0

[node name="Frequency" type="HBoxContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params"]
layout_mode = 2

[node name="Label" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/Frequency"]
custom_minimum_size = Vector2(110, 20)
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 12
text = "Frequency"

[node name="ResetButton" type="Button" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/Frequency"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 8
text = "reset"

[node name="Slider" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/Frequency" instance=ExtResource("3_vt7r5")]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.0
min_value = 0.01
max_value = 0.1
step = 0.0
value = 0.01

[node name="Label3" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params"]
layout_mode = 2
text = "Warp"
horizontal_alignment = 1

[node name="Warp" type="HBoxContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params"]
layout_mode = 2

[node name="Label" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/Warp"]
custom_minimum_size = Vector2(110, 20)
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 12
text = "Warp"

[node name="ResetButton" type="Button" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/Warp"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 8
text = "reset"

[node name="Slider" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/Warp" instance=ExtResource("3_vt7r5")]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.0
min_value = -0.2
max_value = 0.2
step = 0.0
value = -0.2

[node name="RidgeSharpness" type="HBoxContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params"]
layout_mode = 2

[node name="Label" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/RidgeSharpness"]
custom_minimum_size = Vector2(110, 20)
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 12
text = "Ridge Sharpness"

[node name="ResetButton" type="Button" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/RidgeSharpness"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 8
text = "reset"

[node name="Slider" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/RidgeSharpness" instance=ExtResource("3_vt7r5")]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.0
max_value = 0.1
step = 0.0

[node name="RidgeShine" type="HBoxContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params"]
layout_mode = 2

[node name="Label" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/RidgeShine"]
custom_minimum_size = Vector2(110, 20)
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 12
text = "Ridge Shine"

[node name="ResetButton" type="Button" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/RidgeShine"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 8
text = "reset"

[node name="Slider" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/RidgeShine" instance=ExtResource("3_vt7r5")]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.0
min_value = -20.0
max_value = 20.0
step = 0.0

[node name="Label2" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params"]
layout_mode = 2
text = "Vignette"
horizontal_alignment = 1

[node name="VignetteStart" type="HBoxContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params"]
layout_mode = 2

[node name="Label" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/VignetteStart"]
custom_minimum_size = Vector2(110, 20)
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 12
text = "Vignette Start"

[node name="ResetButton" type="Button" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/VignetteStart"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 8
text = "reset"

[node name="Slider" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/VignetteStart" instance=ExtResource("3_vt7r5")]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.0
min_value = -1.0
max_value = 1.0
step = 0.0

[node name="VignetteFade" type="HBoxContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params"]
layout_mode = 2

[node name="Label" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/VignetteFade"]
custom_minimum_size = Vector2(110, 20)
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 12
text = "Vignette Fade"

[node name="ResetButton" type="Button" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/VignetteFade"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 8
text = "reset"

[node name="Slider" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/VignetteFade" instance=ExtResource("3_vt7r5")]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.0
max_value = 20.0
step = 0.0

[node name="VignetteDistort" type="HBoxContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params"]
layout_mode = 2

[node name="Label" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/VignetteDistort"]
custom_minimum_size = Vector2(110, 20)
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 12
text = "Vignette Distort"

[node name="ResetButton" type="Button" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/VignetteDistort"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 8
text = "reset"

[node name="Slider" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/VignetteDistort" instance=ExtResource("3_vt7r5")]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.0
max_value = 3.0
step = 0.0
value = 0.1

[node name="VignetteGradient" type="HBoxContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params"]
layout_mode = 2

[node name="Label" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/VignetteGradient"]
custom_minimum_size = Vector2(110, 20)
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 12
text = "Vignette Gradient"

[node name="ResetButton" type="Button" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/VignetteGradient"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 8
text = "reset"

[node name="Slider" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/VignetteGradient" instance=ExtResource("3_vt7r5")]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.0
max_value = 5.0
step = 0.0
value = 0.1

[node name="Label4" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params"]
layout_mode = 2
text = "Transition"
horizontal_alignment = 1

[node name="TransitionDur" type="HBoxContainer" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params"]
layout_mode = 2

[node name="Label" type="Label" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/TransitionDur"]
custom_minimum_size = Vector2(110, 20)
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 12
text = "Transition Dur"

[node name="ResetButton" type="Button" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/TransitionDur"]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 8
text = "reset"

[node name="Slider" parent="MainSplit/ControlSide/MarginContainer/VBoxContainer/FX Container/VBoxContainer/Params/TransitionDur" instance=ExtResource("3_vt7r5")]
custom_minimum_size = Vector2(0, 20)
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.0
min_value = 0.1
max_value = 10.0
step = 0.0
value = 0.1
