[gd_scene load_steps=27 format=2]

[ext_resource path="res://assets/meta/ui_theme.tres" type="Theme" id=1]
[ext_resource path="res://src/UserInterface/Buttons/ChangeSceneButton.tscn" type="PackedScene" id=3]
[ext_resource path="res://src/UserInterface/Buttons/RetryButton.tscn" type="PackedScene" id=4]
[ext_resource path="res://src/UserInterface/Screens/InGameMenu/PauseScreen.gd" type="Script" id=5]
[ext_resource path="res://src/UserInterface/Screens/InGameMenu/Continue.gd" type="Script" id=6]
[ext_resource path="res://assets/effects/transparency.gdshader" type="Shader" id=7]
[ext_resource path="res://src/UserInterface/Screens/MainMenu/ControlsMenu/ReallyQuitMenu.gd" type="Script" id=8]
[ext_resource path="res://src/UserInterface/Screens/MainMenu/ControlsMenu/ActionKeyList.gd" type="Script" id=9]
[ext_resource path="res://src/UserInterface/Screens/InGameMenu/ControlsMenuIngame.gd" type="Script" id=10]
[ext_resource path="res://src/UserInterface/Screens/InGameMenu/SaveAndQuitIngameButton.gd" type="Script" id=11]
[ext_resource path="res://src/UserInterface/Screens/MainMenu/ControlsMenu/KeySelectMenu.gd" type="Script" id=12]
[ext_resource path="res://src/UserInterface/Screens/MainMenu/ControlsMenu/InputMapper.gd" type="Script" id=13]
[ext_resource path="res://src/UserInterface/Screens/InGameMenu/SavedCheckBackIngameButton.gd" type="Script" id=14]
[ext_resource path="res://src/UserInterface/Screens/MainMenu/ControlsMenu/Reset.gd" type="Script" id=15]
[ext_resource path="res://src/UserInterface/Screens/MainMenu/ControlsMenu/SaveButton.gd" type="Script" id=16]
[ext_resource path="res://src/UserInterface/Screens/MainMenu/ControlsMenu/ProfilesMenu.gd" type="Script" id=17]
[ext_resource path="res://assets/sounds/EpsonStart.ogg" type="AudioStream" id=20]
[ext_resource path="res://assets/ui/Screenshot 2023-05-23 160521.png" type="Texture" id=21]
[ext_resource path="res://assets/meta/montserrat_extrabold.otf" type="DynamicFontData" id=22]

[sub_resource type="DynamicFont" id=1]
size = 42
font_data = ExtResource( 22 )

[sub_resource type="ShaderMaterial" id=6]
shader = ExtResource( 7 )
shader_param/transparency = 0.1

[sub_resource type="DynamicFont" id=2]
font_data = ExtResource( 22 )

[sub_resource type="DynamicFont" id=3]
font_data = ExtResource( 22 )

[sub_resource type="DynamicFont" id=4]
font_data = ExtResource( 22 )

[sub_resource type="ShaderMaterial" id=8]
shader = ExtResource( 7 )
shader_param/transparency = 0.778

[sub_resource type="DynamicFont" id=7]
size = 20
font_data = ExtResource( 22 )

[node name="PauseScreen" type="Control"]
pause_mode = 2
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
theme = ExtResource( 1 )
script = ExtResource( 5 )

[node name="ControlsMenu" type="Control" parent="."]
pause_mode = 2
physics_interpolation_mode = 1
unique_name_in_owner = true
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
input_pass_on_modal_close_click = false
size_flags_horizontal = 0
size_flags_vertical = 0
theme = ExtResource( 1 )
script = ExtResource( 10 )

[node name="PauseOverlay" type="ColorRect" parent="ControlsMenu"]
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0, 0, 0, 0.156863 )

[node name="InputMapper" type="Node" parent="ControlsMenu"]
unique_name_in_owner = true
script = ExtResource( 13 )

[node name="ProfilesMenu" type="OptionButton" parent="ControlsMenu"]
unique_name_in_owner = true
anchor_left = 0.5
anchor_top = 0.165
anchor_right = 0.5
anchor_bottom = 0.165
margin_left = -14.5
margin_right = 14.5
margin_bottom = 19.0
grow_horizontal = 2
grow_vertical = 2
focus_neighbour_top = NodePath("../Back")
focus_neighbour_bottom = NodePath("../KeymapViewer/ScrollContainer")
script = ExtResource( 17 )

[node name="Titel" type="Label" parent="ControlsMenu"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -170.0
margin_right = 170.0
margin_bottom = 52.0
grow_horizontal = 2
size_flags_horizontal = 0
size_flags_vertical = 0
custom_fonts/font = SubResource( 1 )
text = "Controlls Menu"
align = 1
valign = 1

[node name="TextureRect" type="TextureRect" parent="ControlsMenu/Titel"]
material = SubResource( 6 )
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -39.0
margin_top = -3.0
margin_right = 251.0
margin_bottom = 265.0
rect_scale = Vector2( 0.0627026, 0.0522158 )
texture = ExtResource( 21 )

[node name="KeymapViewer" type="VBoxContainer" parent="ControlsMenu"]
anchor_left = 0.1
anchor_top = 0.3
anchor_right = 0.9
anchor_bottom = 0.75
margin_left = -20.0
margin_top = -20.0
margin_right = 20.0
margin_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2

[node name="Headers" type="HBoxContainer" parent="ControlsMenu/KeymapViewer"]
margin_right = 552.0
margin_bottom = 21.0
size_flags_horizontal = 3

[node name="Action" type="Label" parent="ControlsMenu/KeymapViewer/Headers"]
margin_right = 242.0
margin_bottom = 21.0
grow_horizontal = 2
size_flags_horizontal = 3
size_flags_vertical = 0
custom_fonts/font = SubResource( 2 )
text = "Action"
valign = 1

[node name="Control" type="Label" parent="ControlsMenu/KeymapViewer/Headers"]
margin_left = 246.0
margin_right = 305.0
margin_bottom = 21.0
grow_horizontal = 2
size_flags_horizontal = 0
size_flags_vertical = 0
custom_fonts/font = SubResource( 3 )
text = "Button"
align = 1
valign = 1

[node name="Change" type="Label" parent="ControlsMenu/KeymapViewer/Headers"]
margin_left = 309.0
margin_right = 552.0
margin_bottom = 21.0
grow_horizontal = 2
size_flags_horizontal = 3
size_flags_vertical = 0
custom_fonts/font = SubResource( 4 )
text = "Edit"
align = 2
valign = 1

[node name="ScrollContainer" type="ScrollContainer" parent="ControlsMenu/KeymapViewer"]
margin_top = 25.0
margin_right = 552.0
margin_bottom = 202.0
focus_neighbour_top = NodePath("../../ProfilesMenu")
focus_neighbour_bottom = NodePath("../../Save")
focus_previous = NodePath("../../Back")
size_flags_horizontal = 3
size_flags_vertical = 3
follow_focus = true

[node name="ActionKeyList" type="VBoxContainer" parent="ControlsMenu/KeymapViewer/ScrollContainer"]
unique_name_in_owner = true
margin_right = 552.0
margin_bottom = 177.0
size_flags_horizontal = 3
size_flags_vertical = 3
script = ExtResource( 9 )

[node name="Back" type="Button" parent="ControlsMenu"]
unique_name_in_owner = true
anchor_left = 0.05
anchor_top = 0.95
anchor_right = 0.05
anchor_bottom = 0.95
margin_top = -25.0
margin_right = 75.0
grow_horizontal = 2
grow_vertical = 2
rect_min_size = Vector2( 40, 20 )
focus_neighbour_left = NodePath("../Save")
focus_neighbour_top = NodePath("../KeymapViewer/ScrollContainer")
focus_neighbour_right = NodePath("../Reset")
focus_neighbour_bottom = NodePath("../ProfilesMenu")
input_pass_on_modal_close_click = false
size_flags_horizontal = 0
size_flags_vertical = 0
text = "Back"
script = ExtResource( 14 )

[node name="Reset" type="Button" parent="ControlsMenu"]
unique_name_in_owner = true
anchor_left = 0.5
anchor_top = 0.95
anchor_right = 0.5
anchor_bottom = 0.95
margin_left = -37.5
margin_top = -25.0
margin_right = 37.5
grow_horizontal = 2
grow_vertical = 2
rect_min_size = Vector2( 40, 20 )
focus_neighbour_left = NodePath("../Back")
focus_neighbour_top = NodePath("../KeymapViewer/ScrollContainer")
focus_neighbour_right = NodePath("../Save")
focus_neighbour_bottom = NodePath("../ProfilesMenu")
input_pass_on_modal_close_click = false
size_flags_horizontal = 0
size_flags_vertical = 0
text = "Reset"
script = ExtResource( 15 )

[node name="Save" type="Button" parent="ControlsMenu"]
unique_name_in_owner = true
anchor_left = 0.95
anchor_top = 0.95
anchor_right = 0.95
anchor_bottom = 0.95
margin_left = -75.0
margin_top = -25.0
grow_horizontal = 2
grow_vertical = 2
rect_min_size = Vector2( 40, 20 )
focus_neighbour_left = NodePath("../Reset")
focus_neighbour_top = NodePath("../KeymapViewer/ScrollContainer")
focus_neighbour_right = NodePath("../Back")
focus_neighbour_bottom = NodePath("../ProfilesMenu")
input_pass_on_modal_close_click = false
size_flags_horizontal = 0
size_flags_vertical = 0
text = "Save"
script = ExtResource( 16 )

[node name="KeySelectMenu" type="Panel" parent="ControlsMenu"]
unique_name_in_owner = true
process_priority = 1
visible = false
material = SubResource( 8 )
anchor_right = 1.0
anchor_bottom = 1.0
focus_mode = 2
mouse_filter = 2
input_pass_on_modal_close_click = false
script = ExtResource( 12 )

[node name="Timer" type="Timer" parent="ControlsMenu/KeySelectMenu"]
pause_mode = 2
wait_time = 5.0

[node name="Prompt" type="Label" parent="ControlsMenu/KeySelectMenu"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -170.0
margin_top = -26.0
margin_right = 170.0
margin_bottom = 26.0
grow_horizontal = 2
size_flags_horizontal = 0
size_flags_vertical = 0
custom_fonts/font = SubResource( 7 )
text = "Press a key"
align = 1
valign = 1

[node name="Prompt2" type="Label" parent="ControlsMenu/KeySelectMenu"]
anchor_left = 0.663
anchor_top = 0.584
anchor_right = 0.663
anchor_bottom = 0.606
margin_left = -202.5
margin_top = -13.0
margin_right = 202.5
margin_bottom = 13.0
rect_scale = Vector2( 0.5, 0.5 )
size_flags_horizontal = 0
size_flags_vertical = 0
custom_fonts/font = SubResource( 7 )
text = "(ESC to cancel or wait for timeout in: )"
align = 1
valign = 1

[node name="ReallyQuitMenu" type="Panel" parent="ControlsMenu"]
unique_name_in_owner = true
visible = false
material = SubResource( 8 )
anchor_right = 1.0
anchor_bottom = 1.0
focus_mode = 2
input_pass_on_modal_close_click = false
script = ExtResource( 8 )

[node name="Prompt" type="Label" parent="ControlsMenu/ReallyQuitMenu"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -334.0
margin_top = -26.0
margin_right = 335.0
margin_bottom = 26.0
grow_horizontal = 2
mouse_filter = 0
size_flags_horizontal = 0
size_flags_vertical = 0
custom_fonts/font = SubResource( 7 )
text = "Unsaved changes were made.
 Go back anyway?"
align = 1
valign = 1

[node name="VBoxContainer" type="VBoxContainer" parent="ControlsMenu/ReallyQuitMenu"]
anchor_left = 0.5
anchor_top = 0.85
anchor_right = 0.5
anchor_bottom = 0.85
margin_left = -50.5
margin_top = -67.0
margin_right = 50.5
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 0
input_pass_on_modal_close_click = false
size_flags_horizontal = 0
size_flags_vertical = 0
alignment = 1

[node name="SaveNQuit" type="Button" parent="ControlsMenu/ReallyQuitMenu/VBoxContainer"]
margin_right = 101.0
margin_bottom = 20.0
grow_horizontal = 2
grow_vertical = 2
rect_min_size = Vector2( 40, 20 )
focus_neighbour_top = NodePath("../QuitDontSave")
focus_neighbour_bottom = NodePath("../ContinueEdit")
input_pass_on_modal_close_click = false
size_flags_horizontal = 7
size_flags_vertical = 4
text = "Save And Quit"
icon_align = 1
script = ExtResource( 11 )

[node name="ContinueEdit" type="Button" parent="ControlsMenu/ReallyQuitMenu/VBoxContainer"]
margin_top = 24.0
margin_right = 101.0
margin_bottom = 43.0
focus_neighbour_left = NodePath(".")
focus_neighbour_top = NodePath("../SaveNQuit")
focus_neighbour_right = NodePath(".")
focus_neighbour_bottom = NodePath("../QuitDontSave")
focus_next = NodePath(".")
focus_previous = NodePath(".")
input_pass_on_modal_close_click = false
size_flags_horizontal = 7
size_flags_vertical = 7
text = "Continue Editing"

[node name="QuitDontSave" type="Button" parent="ControlsMenu/ReallyQuitMenu/VBoxContainer"]
margin_top = 47.0
margin_right = 101.0
margin_bottom = 67.0
grow_horizontal = 2
grow_vertical = 2
rect_min_size = Vector2( 40, 20 )
focus_neighbour_top = NodePath("../ContinueEdit")
focus_neighbour_bottom = NodePath("../SaveNQuit")
input_pass_on_modal_close_click = false
size_flags_horizontal = 7
size_flags_vertical = 4
text = "Quit Don't Save"

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="ControlsMenu"]
stream = ExtResource( 20 )
volume_db = -10.065
autoplay = true
bus = "Music"

[node name="PauseOverlay" type="ColorRect" parent="."]
unique_name_in_owner = true
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
color = Color( 0, 0, 0, 0.235294 )

[node name="Title" type="Label" parent="PauseOverlay"]
margin_right = 170.0
margin_bottom = 45.0
text = "BOBBI!"

[node name="VBoxContainer" type="VBoxContainer" parent="PauseOverlay"]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -111.0
margin_top = -125.0
margin_right = 111.0
margin_bottom = 125.0
focus_mode = 2

[node name="Continue" type="Button" parent="PauseOverlay/VBoxContainer"]
margin_right = 222.0
margin_bottom = 59.0
focus_neighbour_top = NodePath("../MainMenuButton")
focus_neighbour_bottom = NodePath("../Controls")
size_flags_vertical = 3
text = "Continue"
script = ExtResource( 6 )

[node name="Controls" type="Button" parent="PauseOverlay/VBoxContainer"]
margin_top = 63.0
margin_right = 222.0
margin_bottom = 123.0
focus_neighbour_top = NodePath("../Continue")
focus_neighbour_bottom = NodePath("../RetryButton")
size_flags_vertical = 3
text = "Controls"

[node name="RetryButton" parent="PauseOverlay/VBoxContainer" instance=ExtResource( 4 )]
margin_top = 127.0
margin_right = 222.0
margin_bottom = 186.0
focus_neighbour_top = NodePath("../Controls")
focus_neighbour_bottom = NodePath("../MainMenuButton")

[node name="MainMenuButton" parent="PauseOverlay/VBoxContainer" instance=ExtResource( 3 )]
margin_top = 190.0
margin_right = 222.0
margin_bottom = 250.0
focus_neighbour_top = NodePath("../RetryButton")
focus_neighbour_bottom = NodePath("../Continue")
text = "Main Menu"
next_scene_path = "res://src/UserInterface/Screens/MainMenu/MainScreen.tscn"

[node name="PauseLabel" type="Label" parent="PauseOverlay"]
anchor_left = 0.5
anchor_right = 0.5
margin_left = -19.0
margin_right = 19.0
margin_bottom = 15.0
size_flags_horizontal = 0
size_flags_vertical = 0
text = "Pause"

[connection signal="focus_entered" from="ControlsMenu/KeymapViewer/ScrollContainer" to="ControlsMenu/KeymapViewer/ScrollContainer" method="_on_focus_entered"]
[connection signal="button_up" from="ControlsMenu/Back" to="ControlsMenu/Back" method="_on_button_up"]
[connection signal="button_up" from="ControlsMenu/Reset" to="ControlsMenu/Reset" method="_on_button_up"]
[connection signal="button_up" from="ControlsMenu/Save" to="ControlsMenu/Save" method="_on_button_up"]
[connection signal="timeout" from="ControlsMenu/KeySelectMenu/Timer" to="ControlsMenu/KeySelectMenu" method="close_on_timeout"]
[connection signal="button_up" from="ControlsMenu/ReallyQuitMenu/VBoxContainer/SaveNQuit" to="ControlsMenu/ReallyQuitMenu/VBoxContainer/SaveNQuit" method="_on_button_up"]
[connection signal="button_up" from="ControlsMenu/ReallyQuitMenu/VBoxContainer/ContinueEdit" to="ControlsMenu/ReallyQuitMenu" method="close"]
[connection signal="button_up" from="ControlsMenu/ReallyQuitMenu/VBoxContainer/QuitDontSave" to="ControlsMenu" method="close"]
[connection signal="button_up" from="PauseOverlay/VBoxContainer/Continue" to="PauseOverlay/VBoxContainer/Continue" method="_on_button_up"]
[connection signal="button_up" from="PauseOverlay/VBoxContainer/Controls" to="." method="_on_Controls_button_up"]
