[gd_scene load_steps=11 format=3 uid="uid://bnhcgsyh6wfo3"]

[ext_resource type="Theme" uid="uid://dnsadvmunm76k" path="res://Resources/Styles/MainMenuButtons.tres" id="1_il8fq"]
[ext_resource type="Script" uid="uid://c1874e6ryvd1g" path="res://Scripts/UI/OptionsMenu.cs" id="1_mpohc"]
[ext_resource type="Texture2D" uid="uid://b4fhb0wyc5vw" path="res://Sprites/UI/BackIcon.png" id="2_4kao5"]
[ext_resource type="FontFile" uid="uid://ccm3u37q1hvux" path="res://fonts/Xolonium-Regular.ttf" id="2_l5i2j"]
[ext_resource type="StyleBox" uid="uid://ctw2hju32l3rg" path="res://Resources/Styles/PixelStyleBoxRed.tres" id="3_l5i2j"]
[ext_resource type="PackedScene" uid="uid://cwhm3802fhdax" path="res://Scenes/HUD/Volume_Slider.tscn" id="6_x23el"]
[ext_resource type="LabelSettings" uid="uid://buk3e7bbwmnv1" path="res://Resources/Styles/Hud_Text_Style.tres" id="7_1neg2"]
[ext_resource type="Script" uid="uid://nqkbxr8s5oqn" path="res://Scripts/UI/KeyRemapping.cs" id="7_mx1xt"]
[ext_resource type="PackedScene" uid="uid://j5g536m85lr8" path="res://Scenes/HUD/UiElements/KeyRemappingItem.tscn" id="8_ijs0n"]

[sub_resource type="LabelSettings" id="LabelSettings_4kao5"]
font = ExtResource("2_l5i2j")
font_size = 20
outline_size = 4
outline_color = Color(0, 0, 0, 1)

[node name="OptionsMenu" type="VBoxContainer" node_paths=PackedStringArray("ResolutionsList", "VSyncToggle", "FullScreenToggle")]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_il8fq")
script = ExtResource("1_mpohc")
ResolutionsList = NodePath("ScrollContainer/VBoxContainer/GeneralSettings/VBoxContainer/HFlowContainer/Resolution/ResolutionsList")
VSyncToggle = NodePath("ScrollContainer/VBoxContainer/GeneralSettings/VBoxContainer/HFlowContainer/VsyncCheckbox")
FullScreenToggle = NodePath("ScrollContainer/VBoxContainer/GeneralSettings/VBoxContainer/HFlowContainer/FullScreenCheck")

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

[node name="BackButton" type="Button" parent="HBoxContainer"]
layout_mode = 2
size_flags_vertical = 4
theme = ExtResource("1_il8fq")
text = "Save"
icon = ExtResource("2_4kao5")

[node name="Reset" type="Button" parent="HBoxContainer"]
layout_mode = 2
size_flags_vertical = 4
theme = ExtResource("1_il8fq")
text = "Discard"

[node name="MusicRoomName" type="Label" parent="HBoxContainer"]
layout_mode = 2
text = "Options"
label_settings = SubResource("LabelSettings_4kao5")
horizontal_alignment = 1

[node name="ScrollContainer" type="ScrollContainer" parent="."]
layout_mode = 2
size_flags_vertical = 3
theme_override_styles/panel = ExtResource("3_l5i2j")

[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3

[node name="GeneralSettings" type="HBoxContainer" parent="ScrollContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme = ExtResource("1_il8fq")

[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer/VBoxContainer/GeneralSettings"]
layout_mode = 2

[node name="HFlowContainer" type="HFlowContainer" parent="ScrollContainer/VBoxContainer/GeneralSettings/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme = ExtResource("1_il8fq")

[node name="Label" type="Label" parent="ScrollContainer/VBoxContainer/GeneralSettings/VBoxContainer/HFlowContainer"]
layout_mode = 2
theme_override_constants/line_spacing = -4
text = "VSync and FullScreen detailed mode 
selection coming soon"

[node name="Resolution" type="VBoxContainer" parent="ScrollContainer/VBoxContainer/GeneralSettings/VBoxContainer/HFlowContainer"]
visible = false
layout_mode = 2

[node name="Label" type="Label" parent="ScrollContainer/VBoxContainer/GeneralSettings/VBoxContainer/HFlowContainer/Resolution"]
layout_mode = 2
text = "Resolution"

[node name="ResolutionsList" type="OptionButton" parent="ScrollContainer/VBoxContainer/GeneralSettings/VBoxContainer/HFlowContainer/Resolution"]
layout_mode = 2

[node name="VsyncCheckbox" type="CheckBox" parent="ScrollContainer/VBoxContainer/GeneralSettings/VBoxContainer/HFlowContainer"]
layout_mode = 2
size_flags_vertical = 0
text = "VSync"

[node name="FullScreenCheck" type="CheckBox" parent="ScrollContainer/VBoxContainer/GeneralSettings/VBoxContainer/HFlowContainer"]
layout_mode = 2
size_flags_vertical = 0
text = "Full Screen"

[node name="VolumeContainer" type="VBoxContainer" parent="ScrollContainer/VBoxContainer/GeneralSettings"]
layout_mode = 2

[node name="VBoxContainer3" type="VBoxContainer" parent="ScrollContainer/VBoxContainer/GeneralSettings/VolumeContainer"]
layout_mode = 2
theme = ExtResource("1_il8fq")

[node name="Label" type="Label" parent="ScrollContainer/VBoxContainer/GeneralSettings/VolumeContainer/VBoxContainer3"]
layout_mode = 2
text = "Master Volume"

[node name="MusicSlider" parent="ScrollContainer/VBoxContainer/GeneralSettings/VolumeContainer/VBoxContainer3" instance=ExtResource("6_x23el")]
layout_mode = 2

[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer/VBoxContainer/GeneralSettings/VolumeContainer"]
layout_mode = 2
theme = ExtResource("1_il8fq")

[node name="Label" type="Label" parent="ScrollContainer/VBoxContainer/GeneralSettings/VolumeContainer/VBoxContainer"]
layout_mode = 2
text = "Music Volume"

[node name="MusicSlider" parent="ScrollContainer/VBoxContainer/GeneralSettings/VolumeContainer/VBoxContainer" instance=ExtResource("6_x23el")]
layout_mode = 2
AudioBusName = &"Music"

[node name="VBoxContainer2" type="VBoxContainer" parent="ScrollContainer/VBoxContainer/GeneralSettings/VolumeContainer"]
layout_mode = 2

[node name="Label" type="Label" parent="ScrollContainer/VBoxContainer/GeneralSettings/VolumeContainer/VBoxContainer2"]
layout_mode = 2
text = "Sound Effects Volume"

[node name="SoundSlider" parent="ScrollContainer/VBoxContainer/GeneralSettings/VolumeContainer/VBoxContainer2" instance=ExtResource("6_x23el")]
layout_mode = 2
AudioBusName = &"Effects"

[node name="VBoxContainer4" type="VBoxContainer" parent="ScrollContainer/VBoxContainer/GeneralSettings/VolumeContainer"]
layout_mode = 2

[node name="Label" type="Label" parent="ScrollContainer/VBoxContainer/GeneralSettings/VolumeContainer/VBoxContainer4"]
layout_mode = 2
text = "Voices Volume"

[node name="SoundSlider" parent="ScrollContainer/VBoxContainer/GeneralSettings/VolumeContainer/VBoxContainer4" instance=ExtResource("6_x23el")]
layout_mode = 2
AudioBusName = &"Voice"

[node name="KeyRemapping" type="VBoxContainer" parent="ScrollContainer/VBoxContainer" node_paths=PackedStringArray("KeysContainer")]
visible = false
layout_mode = 2
script = ExtResource("7_mx1xt")
KeysDict = Dictionary[StringName, StringName]({
&"Use": &"Interact",
&"inventory": &"Inventory",
&"pause": &"Pause",
&"scan": &"Scan",
&"shoot": &"Shoot",
&"strafe": &"Strafe"
})
KeysContainer = NodePath("VBoxContainer")
ItemPrefab = ExtResource("8_ijs0n")

[node name="Label" type="Label" parent="ScrollContainer/VBoxContainer/KeyRemapping"]
layout_mode = 2
text = "Key Remapping"
label_settings = ExtResource("7_1neg2")

[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer/VBoxContainer/KeyRemapping"]
layout_mode = 2

[connection signal="pressed" from="HBoxContainer/BackButton" to="." method="_on_back_button_pressed"]
[connection signal="pressed" from="HBoxContainer/Reset" to="." method="_on_discard_button_pressed"]
