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

[ext_resource type="Script" uid="uid://co8tfbsod875o" path="res://Scripts/gui.gd" id="1_7s0l7"]
[ext_resource type="Texture2D" uid="uid://buafet16thf3p" path="res://Assets/crosshair.png" id="1_mpwvh"]
[ext_resource type="Texture2D" uid="uid://dbjlesgbl3b5e" path="res://Sprites/clockOff.png" id="3_cor1f"]
[ext_resource type="Texture2D" uid="uid://bxqb0vw8nouea" path="res://Sprites/clockOn.png" id="4_u77ya"]

[sub_resource type="LabelSettings" id="LabelSettings_lrnc3"]
font_color = Color(1, 0, 0, 1)

[sub_resource type="LabelSettings" id="LabelSettings_v7sqr"]
font_size = 60

[sub_resource type="LabelSettings" id="LabelSettings_rdkfa"]
font_size = 30
font_color = Color(0.662452, 0.662452, 0.662452, 1)

[sub_resource type="LabelSettings" id="LabelSettings_cor1f"]
font_size = 31
font_color = Color(0.686086, 0.00014728, 0.612691, 1)
outline_size = 8
outline_color = Color(0.658824, 1, 1, 1)

[sub_resource type="LabelSettings" id="LabelSettings_u77ya"]
font_size = 61

[sub_resource type="LabelSettings" id="LabelSettings_jf511"]
font_size = 26

[node name="Gui" type="Control" node_paths=PackedStringArray("lose_panel", "lose_label", "reset_label", "start_level", "level_title", "clock_progress", "clock_label", "volume_slider", "level_name", "pause_menu")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_7s0l7")
lose_panel = NodePath("starting and game over/PanelContainer")
lose_label = NodePath("starting and game over/PanelContainer/VBoxContainer/LoseText")
reset_label = NodePath("starting and game over/PanelContainer/VBoxContainer/LoseTimer")
start_level = NodePath("starting and game over/StartPanel")
level_title = NodePath("starting and game over/StartPanel/VBoxContainer/LevelTitle")
clock_progress = NodePath("ClockProgress")
clock_label = NodePath("ClockProgress/CenterContainer/Label")
volume_slider = NodePath("PauseMenu/PanelContainer/VBoxContainer/HBoxContainer/HSlider")
level_name = NodePath("PauseMenu/PanelContainer/VBoxContainer/Level Name")
pause_menu = NodePath("PauseMenu")

[node name="Label" type="Label" parent="."]
visible = false
layout_mode = 0
offset_right = 40.0
offset_bottom = 23.0
text = "Time: 10"
label_settings = SubResource("LabelSettings_lrnc3")

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

[node name="TextureRect" type="TextureRect" parent="Crosshair"]
modulate = Color(1, 1, 1, 0.721569)
custom_minimum_size = Vector2(20, 20)
layout_mode = 2
texture = ExtResource("1_mpwvh")
expand_mode = 1

[node name="starting and game over" type="MarginContainer" parent="."]
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 = 200
theme_override_constants/margin_top = 150
theme_override_constants/margin_right = 200
theme_override_constants/margin_bottom = 150

[node name="StartPanel" type="PanelContainer" parent="starting and game over"]
layout_mode = 2

[node name="VBoxContainer" type="VBoxContainer" parent="starting and game over/StartPanel"]
layout_mode = 2
alignment = 1

[node name="LevelTitle" type="Label" parent="starting and game over/StartPanel/VBoxContainer"]
layout_mode = 2
text = "Level Failed"
label_settings = SubResource("LabelSettings_v7sqr")
horizontal_alignment = 1

[node name="PanelContainer" type="PanelContainer" parent="starting and game over"]
layout_mode = 2

[node name="VBoxContainer" type="VBoxContainer" parent="starting and game over/PanelContainer"]
layout_mode = 2
alignment = 1

[node name="LoseText" type="Label" parent="starting and game over/PanelContainer/VBoxContainer"]
layout_mode = 2
text = "Level Failed"
label_settings = SubResource("LabelSettings_v7sqr")
horizontal_alignment = 1

[node name="LoseTimer" type="Label" parent="starting and game over/PanelContainer/VBoxContainer"]
layout_mode = 2
text = "Resetting in: 3.0"
label_settings = SubResource("LabelSettings_rdkfa")
horizontal_alignment = 1

[node name="ClockProgress" type="TextureProgressBar" parent="."]
layout_mode = 2
offset_left = 10.0
offset_top = 10.0
offset_right = 74.0
offset_bottom = 74.0
scale = Vector2(2, 2)
max_value = 10.0
fill_mode = 4
texture_under = ExtResource("3_cor1f")
texture_progress = ExtResource("4_u77ya")

[node name="CenterContainer" type="CenterContainer" parent="ClockProgress"]
layout_mode = 1
offset_left = -0.5
offset_top = -0.5
offset_right = 63.5
offset_bottom = 63.5

[node name="Label" type="Label" parent="ClockProgress/CenterContainer"]
layout_mode = 2
text = "0"
label_settings = SubResource("LabelSettings_cor1f")

[node name="PauseMenu" type="MarginContainer" parent="."]
process_mode = 3
visible = false
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 = 170
theme_override_constants/margin_top = 100
theme_override_constants/margin_right = 170
theme_override_constants/margin_bottom = 100

[node name="PanelContainer" type="PanelContainer" parent="PauseMenu"]
layout_mode = 2
size_flags_vertical = 4

[node name="VBoxContainer" type="VBoxContainer" parent="PauseMenu/PanelContainer"]
layout_mode = 2

[node name="Label" type="Label" parent="PauseMenu/PanelContainer/VBoxContainer"]
layout_mode = 2
text = "Paused"
label_settings = SubResource("LabelSettings_u77ya")
horizontal_alignment = 1

[node name="Level Name" type="Label" parent="PauseMenu/PanelContainer/VBoxContainer"]
layout_mode = 2
text = "Current Level:"
horizontal_alignment = 1

[node name="HBoxContainer" type="HBoxContainer" parent="PauseMenu/PanelContainer/VBoxContainer"]
layout_mode = 2

[node name="Label" type="Label" parent="PauseMenu/PanelContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
text = "Volume"
label_settings = SubResource("LabelSettings_jf511")
horizontal_alignment = 1

[node name="HSlider" type="HSlider" parent="PauseMenu/PanelContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 1
max_value = 2.0
step = 0.0

[node name="HBoxContainer2" type="HBoxContainer" parent="PauseMenu/PanelContainer/VBoxContainer"]
layout_mode = 2

[node name="MenuButton" type="Button" parent="PauseMenu/PanelContainer/VBoxContainer/HBoxContainer2"]
modulate = Color(1, 0, 0, 1)
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 26
text = "Back to Menu"

[node name="ResumeButton" type="Button" parent="PauseMenu/PanelContainer/VBoxContainer/HBoxContainer2"]
modulate = Color(0, 1, 0, 1)
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 26
text = "Resume"

[connection signal="value_changed" from="PauseMenu/PanelContainer/VBoxContainer/HBoxContainer/HSlider" to="." method="_on_h_slider_value_changed"]
[connection signal="pressed" from="PauseMenu/PanelContainer/VBoxContainer/HBoxContainer2/MenuButton" to="." method="goto_menu"]
[connection signal="pressed" from="PauseMenu/PanelContainer/VBoxContainer/HBoxContainer2/ResumeButton" to="." method="close_pause"]
