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

[ext_resource type="Texture2D" uid="uid://dvldjlg0nr355" path="res://assets/sprites/atlases/atlas1.png" id="1_loim0"]
[ext_resource type="Script" uid="uid://gvwhpjoame6m" path="res://scripts/gui/PauseMenu.cs" id="2_4vp8g"]
[ext_resource type="Script" uid="uid://c36bj8u7jghc7" path="res://scripts/audio/ChannelPlayer.cs" id="3_4vp8g"]
[ext_resource type="Script" uid="uid://ciccaxqo70s13" path="res://scripts/audio/AudioSlider.cs" id="3_e3p60"]
[ext_resource type="AudioStream" uid="uid://bdx83fokp6kha" path="res://assets/audio/sfx/buttonclick.mp3" id="4_e3p60"]

[sub_resource type="AtlasTexture" id="AtlasTexture_tifvb"]
atlas = ExtResource("1_loim0")
region = Rect2(0, 0, 177, 174)

[sub_resource type="LabelSettings" id="LabelSettings_or0he"]
font_size = 32
outline_size = 2

[sub_resource type="AtlasTexture" id="AtlasTexture_4k24j"]
atlas = ExtResource("1_loim0")
region = Rect2(0, 221, 127, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_or0he"]
atlas = ExtResource("1_loim0")
region = Rect2(255, 221, 118, 20)

[sub_resource type="AtlasTexture" id="AtlasTexture_y3stn"]
atlas = ExtResource("1_loim0")
region = Rect2(194, 221, 61, 20)

[node name="PauseMenu" type="MarginContainer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 0
theme_override_constants/margin_left = 150
theme_override_constants/margin_top = 40
theme_override_constants/margin_right = 150
theme_override_constants/margin_bottom = 60

[node name="Pause" type="NinePatchRect" parent="."]
process_mode = 3
z_index = 1
layout_mode = 2
texture = SubResource("AtlasTexture_tifvb")
patch_margin_left = 73
patch_margin_top = 98
patch_margin_right = 73
patch_margin_bottom = 52
script = ExtResource("2_4vp8g")
metadata/_edit_use_anchors_ = true

[node name="MarginContainer" type="MarginContainer" parent="Pause"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 30
theme_override_constants/margin_top = 55
theme_override_constants/margin_right = 30
theme_override_constants/margin_bottom = 10

[node name="Buttons" type="VBoxContainer" parent="Pause/MarginContainer"]
layout_mode = 2

[node name="PAUSED" type="Label" parent="Pause/MarginContainer/Buttons"]
layout_mode = 2
text = "paused"
label_settings = SubResource("LabelSettings_or0he")
horizontal_alignment = 1
metadata/_edit_use_anchors_ = true

[node name="Volumes" type="HBoxContainer" parent="Pause/MarginContainer/Buttons"]
layout_mode = 2

[node name="Labels" type="VBoxContainer" parent="Pause/MarginContainer/Buttons/Volumes"]
layout_mode = 2

[node name="SFX" type="Label" parent="Pause/MarginContainer/Buttons/Volumes/Labels"]
layout_mode = 2
text = "sfx"

[node name="Music" type="Label" parent="Pause/MarginContainer/Buttons/Volumes/Labels"]
layout_mode = 2
text = "music"

[node name="Sliders" type="VBoxContainer" parent="Pause/MarginContainer/Buttons/Volumes"]
layout_mode = 2
size_flags_horizontal = 3

[node name="SFX" type="HSlider" parent="Pause/MarginContainer/Buttons/Volumes/Sliders"]
layout_mode = 2
size_flags_horizontal = 3
max_value = 1.0
step = 0.01
value = 1.0
script = ExtResource("3_e3p60")

[node name="Music" type="HSlider" parent="Pause/MarginContainer/Buttons/Volumes/Sliders"]
layout_mode = 2
size_flags_horizontal = 3
max_value = 1.0
step = 0.01
value = 1.0
script = ExtResource("3_e3p60")
affects = 1

[node name="ContinueButton" type="Button" parent="Pause/MarginContainer/Buttons"]
layout_mode = 2
icon = SubResource("AtlasTexture_4k24j")
icon_alignment = 1

[node name="RestartButton" type="Button" parent="Pause/MarginContainer/Buttons"]
layout_mode = 2
icon = SubResource("AtlasTexture_or0he")
icon_alignment = 1

[node name="ExitButton" type="Button" parent="Pause/MarginContainer/Buttons"]
layout_mode = 2
icon = SubResource("AtlasTexture_y3stn")
icon_alignment = 1

[node name="ButtonPlayer" type="Node" parent="Pause/MarginContainer/Buttons"]
script = ExtResource("3_4vp8g")
audioStream = ExtResource("4_e3p60")
channel = "button"
metadata/_custom_type_script = "uid://c36bj8u7jghc7"

[connection signal="pressed" from="Pause/MarginContainer/Buttons/ContinueButton" to="Pause" method="Continue"]
[connection signal="pressed" from="Pause/MarginContainer/Buttons/ContinueButton" to="Pause/MarginContainer/Buttons/ButtonPlayer" method="Play"]
[connection signal="pressed" from="Pause/MarginContainer/Buttons/RestartButton" to="Pause" method="Restart"]
[connection signal="pressed" from="Pause/MarginContainer/Buttons/RestartButton" to="Pause/MarginContainer/Buttons/ButtonPlayer" method="Play"]
[connection signal="pressed" from="Pause/MarginContainer/Buttons/ExitButton" to="Pause" method="Exit"]
[connection signal="pressed" from="Pause/MarginContainer/Buttons/ExitButton" to="Pause/MarginContainer/Buttons/ButtonPlayer" method="Play"]
