[gd_scene load_steps=9 format=3 uid="uid://dfhkfocy8axb8"]

[ext_resource type="Script" path="res://logic-scenes/main menu/audio_settings.gd" id="1_0lla1"]
[ext_resource type="AudioStream" uid="uid://cl74a68tjwinh" path="res://base-environments/youth_room/audio/Youth Loop.wav" id="2_01rsa"]

[sub_resource type="Animation" id="Animation_lax27"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../MusicSlider/MusicPreview:volume_db")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [-80.0]
}

[sub_resource type="Animation" id="Animation_yggd5"]
resource_name = "blend_in"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../MusicSlider/MusicPreview:volume_db")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.9),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [-80.0, 0.0]
}

[sub_resource type="Animation" id="Animation_jjj7g"]
resource_name = "blend_out"
length = 3.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("../MusicSlider/MusicPreview:volume_db")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 3),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [0.0, -80.0]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_sfx55"]
_data = {
"RESET": SubResource("Animation_lax27"),
"blend_in": SubResource("Animation_yggd5"),
"blend_out": SubResource("Animation_jjj7g")
}

[sub_resource type="InputEventAction" id="InputEventAction_gy6yb"]
action = &"ui_cancel"
pressed = true

[sub_resource type="Shortcut" id="Shortcut_0peu0"]
events = [SubResource("InputEventAction_gy6yb")]

[node name="Audio Settings" type="VBoxContainer"]
script = ExtResource("1_0lla1")
metadata/_tab_index = 1

[node name="Label" type="Label" parent="."]
layout_mode = 2
theme_type_variation = &"HeaderLarge"
text = "Audio Settings"

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

[node name="MuteSoundtrack" type="CheckBox" parent="VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
tooltip_text = "All Game Music is safe to stream."
text = "mute Soundtrack"

[node name="MuteSFX" type="CheckBox" parent="VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "mute Sound-Effects"

[node name="AdjustmentLabel" type="Label" parent="VBoxContainer"]
layout_mode = 2
text = "Volume Adjustment"

[node name="GridContainer" type="GridContainer" parent="VBoxContainer"]
layout_mode = 2
columns = 2

[node name="Label" type="Label" parent="VBoxContainer/GridContainer"]
layout_mode = 2
text = "Music"

[node name="MusicSlider" type="HSlider" parent="VBoxContainer/GridContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
max_value = 1.0
step = 0.05
value = 0.5
ticks_on_borders = true

[node name="MusicPreview" type="AudioStreamPlayer" parent="VBoxContainer/GridContainer/MusicSlider"]
unique_name_in_owner = true
stream = ExtResource("2_01rsa")
volume_db = -80.0
bus = &"music"

[node name="MusicMixer" type="AnimationPlayer" parent="VBoxContainer/GridContainer/MusicSlider"]
unique_name_in_owner = true
root_node = NodePath("../../SumSlider")
libraries = {
"": SubResource("AnimationLibrary_sfx55")
}

[node name="Label3" type="Label" parent="VBoxContainer/GridContainer"]
layout_mode = 2
text = "Sounds"

[node name="SoundSlider" type="HSlider" parent="VBoxContainer/GridContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
max_value = 1.0
step = 0.05
value = 0.5

[node name="Label4" type="Label" parent="VBoxContainer/GridContainer"]
layout_mode = 2
text = "Speech"

[node name="SpeechSlider" type="HSlider" parent="VBoxContainer/GridContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
max_value = 1.0
step = 0.05
value = 0.5

[node name="Label5" type="Label" parent="VBoxContainer/GridContainer"]
layout_mode = 2
text = "Sum"

[node name="SumSlider" type="HSlider" parent="VBoxContainer/GridContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 4
max_value = 1.0
step = 0.05
value = 0.5

[node name="Audio Sliders" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2

[node name="Labels" type="VBoxContainer" parent="VBoxContainer/Audio Sliders"]
layout_mode = 2

[node name="Sliders" type="VBoxContainer" parent="VBoxContainer/Audio Sliders"]
layout_mode = 2

[node name="Sounds" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2

[node name="Speech" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2

[node name="confirm_buttons" type="HSplitContainer" parent="."]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 10

[node name="ResetButton" type="Button" parent="confirm_buttons"]
unique_name_in_owner = true
layout_mode = 2
text = "reset"

[node name="SaveButton" type="Button" parent="confirm_buttons"]
unique_name_in_owner = true
layout_mode = 2
shortcut = SubResource("Shortcut_0peu0")
text = "save and exit"
