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

[ext_resource type="Script" path="res://src/UI/Dialogs/ImageEffects/OutlineDialog.gd" id="1"]
[ext_resource type="Script" path="res://src/UI/Nodes/Sliders/ValueSlider.gd" id="2"]
[ext_resource type="PackedScene" uid="uid://bybqhhayl5ay5" path="res://src/UI/Dialogs/ImageEffects/ImageEffectParent.tscn" id="3"]

[node name="OutlineDialog" instance=ExtResource("3")]
title = "Outline"
script = ExtResource("1")

[node name="VBoxContainer" parent="." index="3"]
offset_bottom = 354.0

[node name="OutlineOptions" type="GridContainer" parent="VBoxContainer" index="2"]
layout_mode = 2
theme_override_constants/h_separation = 4
theme_override_constants/v_separation = 4
columns = 2

[node name="ThickLabel" type="Label" parent="VBoxContainer/OutlineOptions" index="0"]
layout_mode = 2
size_flags_horizontal = 3
text = "Thickness:"

[node name="ThickValue" type="TextureProgressBar" parent="VBoxContainer/OutlineOptions" index="1"]
layout_mode = 2
focus_mode = 2
mouse_default_cursor_shape = 2
theme_type_variation = &"ValueSlider"
min_value = 1.0
value = 1.0
allow_greater = true
nine_patch_stretch = true
stretch_margin_left = 3
stretch_margin_top = 3
stretch_margin_right = 3
stretch_margin_bottom = 3
script = ExtResource("2")
suffix = "px"

[node name="OutlineColorLabel" type="Label" parent="VBoxContainer/OutlineOptions" index="2"]
layout_mode = 2
size_flags_horizontal = 3
text = "Fill with color:"

[node name="OutlineColor" type="ColorPickerButton" parent="VBoxContainer/OutlineOptions" index="3"]
custom_minimum_size = Vector2(64, 20)
layout_mode = 2
size_flags_horizontal = 3

[node name="PatternLabel" type="Label" parent="VBoxContainer/OutlineOptions" index="4"]
layout_mode = 2
size_flags_horizontal = 3
text = "Brush:"

[node name="PatternOptionButton" type="OptionButton" parent="VBoxContainer/OutlineOptions" index="5"]
layout_mode = 2
size_flags_horizontal = 3
mouse_default_cursor_shape = 2
selected = 0
item_count = 3
popup/item_0/text = "Diamond"
popup/item_1/text = "Circle"
popup/item_1/id = 1
popup/item_2/text = "Square"
popup/item_2/id = 2

[node name="InsideImageLabel" type="Label" parent="VBoxContainer/OutlineOptions" index="6"]
layout_mode = 2
size_flags_horizontal = 3
text = "Place inside image"

[node name="InsideImageCheckBox" type="CheckBox" parent="VBoxContainer/OutlineOptions" index="7"]
layout_mode = 2
size_flags_horizontal = 3
mouse_default_cursor_shape = 2
text = "On"

[connection signal="value_changed" from="VBoxContainer/OutlineOptions/ThickValue" to="." method="_on_ThickValue_value_changed"]
[connection signal="color_changed" from="VBoxContainer/OutlineOptions/OutlineColor" to="." method="_on_OutlineColor_color_changed"]
[connection signal="item_selected" from="VBoxContainer/OutlineOptions/PatternOptionButton" to="." method="_on_PatternOptionButton_item_selected"]
[connection signal="toggled" from="VBoxContainer/OutlineOptions/InsideImageCheckBox" to="." method="_on_InsideImageCheckBox_toggled"]
