Ouroboros/Scenes/game_over_menu.tscn

52 lines
1.6 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://bqg3ohs1gwofr"]
[ext_resource type="Script" uid="uid://b8brifkk4knh8" path="res://Scripts/game_over_menu.gd" id="1_arass"]
[ext_resource type="FontFile" uid="uid://cupgp2iqxdun5" path="res://Fonts/Kings-Regular.ttf" id="2_i22rp"]
[ext_resource type="Theme" uid="uid://swbdum41grig" path="res://default_theme.tres" id="3_dsdey"]
[sub_resource type="LabelSettings" id="LabelSettings_7upku"]
font = ExtResource("2_i22rp")
font_size = 32
[node name="Panel" type="Panel" groups=["GameOverMenu"]]
visible = false
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="GameOverMenu" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_arass")
[node name="FinalScore" type="Label" parent="GameOverMenu"]
layout_mode = 2
text = "Final Score
0"
label_settings = SubResource("LabelSettings_7upku")
horizontal_alignment = 1
[node name="Control" type="Control" parent="GameOverMenu"]
layout_mode = 2
size_flags_vertical = 3
[node name="Restart" type="Button" parent="GameOverMenu"]
layout_mode = 2
theme = ExtResource("3_dsdey")
text = "Restart"
[node name="MainMenu" type="Button" parent="GameOverMenu"]
layout_mode = 2
text = "Main Menu"
[connection signal="visibility_changed" from="GameOverMenu" to="GameOverMenu" method="update_score"]
[connection signal="pressed" from="GameOverMenu/Restart" to="GameOverMenu" method="restart"]
[connection signal="pressed" from="GameOverMenu/MainMenu" to="GameOverMenu" method="back"]