-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGameController.tscn
172 lines (146 loc) · 4.41 KB
/
GameController.tscn
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
[gd_scene load_steps=11 format=2]
[ext_resource path="res://GameController.gd" type="Script" id=1]
[ext_resource path="res://menus/OptionsMenu.tscn" type="PackedScene" id=2]
[ext_resource path="res://player/HUD.tscn" type="PackedScene" id=3]
[ext_resource path="res://menus/PauseMenu.tscn" type="PackedScene" id=4]
[ext_resource path="res://assets/fonts/savior.ttf" type="DynamicFontData" id=5]
[ext_resource path="res://Loadout.tscn" type="PackedScene" id=6]
[sub_resource type="DynamicFont" id=1]
size = 200
font_data = ExtResource( 5 )
[sub_resource type="DynamicFont" id=2]
size = 57
font_data = ExtResource( 5 )
[sub_resource type="DynamicFont" id=3]
size = 100
font_data = ExtResource( 5 )
[sub_resource type="DynamicFont" id=4]
size = 50
font_data = ExtResource( 5 )
[node name="GameController" type="Node"]
script = ExtResource( 1 )
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="HUD" parent="CanvasLayer" instance=ExtResource( 3 )]
margin_right = 335.0
margin_bottom = 52.0
[node name="DeathUI" type="Control" parent="CanvasLayer"]
anchor_right = 1.0
anchor_bottom = 1.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="YouDied" type="RichTextLabel" parent="CanvasLayer/DeathUI"]
visible = false
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -312.5
margin_top = -89.5
margin_right = 312.5
margin_bottom = 89.5
custom_fonts/normal_font = SubResource( 1 )
custom_colors/default_color = Color( 0.827451, 0.0627451, 0.0627451, 1 )
text = "YOU DIED"
[node name="Obituary" type="VBoxContainer" parent="CanvasLayer/DeathUI"]
anchor_left = 0.007
anchor_top = 0.988
anchor_right = 0.007
anchor_bottom = 0.988
margin_left = -0.440001
margin_top = -129.04
margin_right = 253.56
margin_bottom = -0.0400391
alignment = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ObituaryRowTimeout" type="Timer" parent="CanvasLayer/DeathUI/Obituary"]
wait_time = 4.0
one_shot = true
[node name="RespawnAsker" type="Button" parent="CanvasLayer/DeathUI"]
visible = false
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -121.5
margin_top = -37.5
margin_right = 121.5
margin_bottom = 37.5
custom_fonts/font = SubResource( 2 )
text = "Respawn"
[node name="RespawnCountdown" type="RichTextLabel" parent="CanvasLayer/DeathUI"]
visible = false
anchor_left = 0.5
anchor_top = -1.5
anchor_right = 0.5
anchor_bottom = -1.5
margin_left = -19.5
margin_top = -42.5
margin_right = 69.5
margin_bottom = 42.5
custom_fonts/normal_font = SubResource( 3 )
scroll_active = false
__meta__ = {
"_edit_use_anchors_": false
}
[node name="YouDiedTimer" type="Timer" parent="CanvasLayer/DeathUI"]
one_shot = true
[node name="RespawnTimer" type="Timer" parent="CanvasLayer/DeathUI"]
wait_time = 2.0
one_shot = true
[node name="Weapons" parent="CanvasLayer/DeathUI" instance=ExtResource( 6 )]
visible = false
margin_left = 765.216
margin_top = 632.718
margin_right = 1089.22
margin_bottom = 780.718
[node name="NetworkUI" type="Control" parent="CanvasLayer"]
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="DisconnectMessage" type="Label" parent="CanvasLayer/NetworkUI"]
visible = false
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -347.5
margin_top = -28.5
margin_right = 347.5
margin_bottom = 28.5
custom_fonts/font = SubResource( 4 )
align = 1
[node name="DisconnectMessageTimer" type="Timer" parent="CanvasLayer/NetworkUI"]
wait_time = 2.0
one_shot = true
[node name="ConnectMessage" type="Label" parent="CanvasLayer/NetworkUI"]
visible = false
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -347.5
margin_top = -28.5
margin_right = 347.5
margin_bottom = 28.5
custom_fonts/font = SubResource( 4 )
align = 1
[node name="ConnectMessageTimer" type="Timer" parent="CanvasLayer/NetworkUI"]
wait_time = 2.0
one_shot = true
[node name="PauseMenu" parent="CanvasLayer" instance=ExtResource( 4 )]
mouse_filter = 2
[node name="OptionsMenu" parent="CanvasLayer" instance=ExtResource( 2 )]
pause_mode = 2
margin_top = -1.5874
margin_bottom = -1.5874
mouse_filter = 2
[node name="Timer" type="Timer" parent="CanvasLayer"]
[connection signal="respawn_available" from="." to="." method="_on_GameController_respawn_available"]
[connection signal="pressed" from="CanvasLayer/DeathUI/RespawnAsker" to="." method="_on_RespawnAsker_pressed"]
[editable path="CanvasLayer/DeathUI/Weapons"]