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

[ext_resource type="AudioStream" uid="uid://c4mviyo5ldto5" path="res://Assets/Audio/BGM/GameOver.mp3" id="1_644yi"]
[ext_resource type="Script" uid="uid://b1dc01fk1eomt" path="res://Scripts/Parts/GameOver.gd" id="1_chlux"]
[ext_resource type="Script" uid="uid://cq6f682453q6o" path="res://Scripts/Classes/Components/ResourceSetter.gd" id="3_buq0o"]
[ext_resource type="Script" uid="uid://cmvlgsjmsk0v5" path="res://Scripts/Classes/Resources/ThemedResource.gd" id="4_xsy50"]
[ext_resource type="PackedScene" uid="uid://bmn81e10obpjv" path="res://Scenes/Parts/SelectableLabel.tscn" id="5_l878x"]
[ext_resource type="Script" uid="uid://co6tjg3w6qpd8" path="res://Scripts/Parts/LabelFontChanger.gd" id="5_ykrvu"]
[ext_resource type="Script" uid="uid://dt2p68xl462v2" path="res://Scripts/Parts/TextShadowColourChanger.gd" id="7_2uo6v"]

[sub_resource type="Resource" id="Resource_ykrvu"]
script = ExtResource("4_xsy50")
Overworld = ExtResource("1_644yi")
metadata/_custom_type_script = "uid://cmvlgsjmsk0v5"

[node name="GameOver" type="Node"]
process_mode = 3
script = ExtResource("1_chlux")
has_menu = true

[node name="Music" type="AudioStreamPlayer" parent="."]
stream = ExtResource("1_644yi")
bus = &"Music"

[node name="ResourceSetter" type="Node" parent="Music" node_paths=PackedStringArray("node_to_affect")]
script = ExtResource("3_buq0o")
node_to_affect = NodePath("..")
property_name = "stream"
themed_resource = SubResource("Resource_ykrvu")
metadata/_custom_type_script = "uid://cq6f682453q6o"

[node name="CanvasLayer" type="CanvasLayer" parent="."]
layer = 0

[node name="BG" type="ColorRect" parent="CanvasLayer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)

[node name="Label" type="Label" parent="CanvasLayer"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "DIFFI_GAME_OVER"
horizontal_alignment = 1
vertical_alignment = 1
uppercase = true

[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer"]
visible = false
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -64.0
offset_top = -12.0
offset_right = 64.0
offset_bottom = 56.0
grow_horizontal = 2
grow_vertical = 2

[node name="Control" type="Control" parent="CanvasLayer/VBoxContainer"]
custom_minimum_size = Vector2(0, 24)
layout_mode = 2

[node name="SelectableLabel" parent="CanvasLayer/VBoxContainer" instance=ExtResource("5_l878x")]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 10
text = "MENU_CONTINUE"

[node name="SelectableLabel2" parent="CanvasLayer/VBoxContainer" instance=ExtResource("5_l878x")]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 10
text = "PAUSE_QUIT"

[node name="Timer" type="Timer" parent="."]
wait_time = 5.0
one_shot = true
autostart = true

[node name="LabelFontChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
script = ExtResource("5_ykrvu")
labels = [NodePath("../CanvasLayer/Label"), NodePath("../CanvasLayer/VBoxContainer/SelectableLabel"), NodePath("../CanvasLayer/VBoxContainer/SelectableLabel2")]
metadata/_custom_type_script = "uid://co6tjg3w6qpd8"

[node name="TextShadowColourChanger" type="Node" parent="." node_paths=PackedStringArray("labels")]
script = ExtResource("7_2uo6v")
labels = [NodePath("../CanvasLayer/Label"), NodePath("../CanvasLayer/VBoxContainer/SelectableLabel"), NodePath("../CanvasLayer/VBoxContainer/SelectableLabel2")]
metadata/_custom_type_script = "uid://dt2p68xl462v2"

[connection signal="sprites_updated" from="Music/ResourceSetter" to="Music" method="play"]
[connection signal="pressed" from="CanvasLayer/VBoxContainer/SelectableLabel" to="." method="continue_on"]
[connection signal="pressed" from="CanvasLayer/VBoxContainer/SelectableLabel2" to="." method="quit_to_menu"]
[connection signal="timeout" from="Timer" to="." method="go_back_to_title"]
