-
Notifications
You must be signed in to change notification settings - Fork 102
Expand file tree
/
Copy pathgame_over.tscn
More file actions
104 lines (86 loc) · 3.96 KB
/
Copy pathgame_over.tscn
File metadata and controls
104 lines (86 loc) · 3.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
[gd_scene load_steps=7 format=3 uid="uid://8bb4nowy77nt"]
[ext_resource type="Theme" uid="uid://yctjuhnen1br" path="res://addons/top_down/resources/theme/game_gui_theme.theme" id="1_134lv"]
[ext_resource type="Resource" uid="uid://5emqdks7qgbm" path="res://addons/top_down/resources/global_resources/score_resource.tres" id="3_qjp3e"]
[ext_resource type="Script" path="res://addons/top_down/scripts/ui/game_over_screen/score_component.gd" id="4_0xj0i"]
[ext_resource type="Script" path="res://addons/top_down/scripts/game/MusicSetter.gd" id="4_wi5q1"]
[ext_resource type="Script" path="res://addons/top_down/scripts/ui/title_screen/ChangeSceneButton.gd" id="9_ldwnv"]
[ext_resource type="PackedScene" uid="uid://b3ww0jqqy1eq7" path="res://addons/top_down/scenes/ui/menu_button.tscn" id="10_djt0l"]
[node name="GameOver" type="ColorRect"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_134lv")
color = Color(0.0892667, 0.078, 0.13, 1)
[node name="TryAgainComponent" type="Node" parent="." node_paths=PackedStringArray("button")]
script = ExtResource("9_ldwnv")
button = NodePath("../MarginContainer/Control/Body/Menu/TryAgain/Button")
scene_path = "res://addons/top_down/scenes/levels/room_start.tscn"
[node name="MainMenuComponent" type="Node" parent="." node_paths=PackedStringArray("button")]
script = ExtResource("9_ldwnv")
button = NodePath("../MarginContainer/Control/Body/Menu/Main Menu/Button")
scene_path = "res://addons/top_down/scenes/ui/screens/title.tscn"
[node name="MusicSetter" type="Node" parent="."]
script = ExtResource("4_wi5q1")
music_name = "game_over"
[node name="ScoreComponent" type="Node" parent="." node_paths=PackedStringArray("score_label", "try_again_button")]
script = ExtResource("4_0xj0i")
score_resource = ExtResource("3_qjp3e")
score_label = NodePath("../MarginContainer/Control/Header/ScoreLabel")
try_again_button = NodePath("../MarginContainer/Control/Body/Menu/TryAgain/Button")
[node name="MarginContainer" 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 = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
[node name="Control" type="VBoxContainer" parent="MarginContainer"]
layout_mode = 2
[node name="Header" type="Control" parent="MarginContainer/Control"]
layout_mode = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 2.0
[node name="TitleLabel" type="Label" parent="MarginContainer/Control/Header"]
layout_mode = 0
offset_left = 104.5
offset_top = 51.5
offset_right = 365.5
offset_bottom = 118.5
theme_override_font_sizes/font_size = 48
text = "Game Over"
horizontal_alignment = 1
[node name="ScoreLabel" type="Label" parent="MarginContainer/Control/Header"]
layout_mode = 0
offset_left = 188.0
offset_top = 129.0
offset_right = 283.0
offset_bottom = 152.0
theme_override_font_sizes/font_size = 16
text = "Score: 69"
horizontal_alignment = 1
[node name="Body" type="MarginContainer" parent="MarginContainer/Control"]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/margin_left = 150
theme_override_constants/margin_right = 150
theme_override_constants/margin_bottom = 20
[node name="Menu" type="VBoxContainer" parent="MarginContainer/Control/Body"]
layout_mode = 2
size_flags_vertical = 10
theme_override_constants/separation = 0
[node name="TryAgain" parent="MarginContainer/Control/Body/Menu" instance=ExtResource("10_djt0l")]
layout_mode = 2
[node name="Label" parent="MarginContainer/Control/Body/Menu/TryAgain" index="1"]
text = "Try Again"
[node name="Main Menu" parent="MarginContainer/Control/Body/Menu" instance=ExtResource("10_djt0l")]
layout_mode = 2
[node name="Label" parent="MarginContainer/Control/Body/Menu/Main Menu" index="1"]
text = "Main Menu"
[editable path="MarginContainer/Control/Body/Menu/TryAgain"]
[editable path="MarginContainer/Control/Body/Menu/Main Menu"]