-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMainMenu.tscn
473 lines (417 loc) · 13.1 KB
/
MainMenu.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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
[gd_scene load_steps=17 format=2]
[ext_resource path="res://assets/ui/MainMenu.png" type="Texture" id=1]
[ext_resource path="res://MainMenu.gd" type="Script" id=2]
[ext_resource path="res://menus/OptionsMenu.tscn" type="PackedScene" id=3]
[ext_resource path="res://assets/ui/SlayerTheme.tres" type="Theme" id=4]
[ext_resource path="res://assets/shaders/CRTShader.tres" type="Material" id=5]
[ext_resource path="res://assets/sfx/ui/Hover.wav" type="AudioStream" id=6]
[ext_resource path="res://assets/sfx/ui/Button2.wav" type="AudioStream" id=7]
[ext_resource path="res://assets/sfx/ui/Blip2.wav" type="AudioStream" id=8]
[ext_resource path="res://assets/sfx/ui/Button1.wav" type="AudioStream" id=9]
[ext_resource path="res://assets/sfx/ui/Blip1.wav" type="AudioStream" id=10]
[ext_resource path="res://assets/music/SandAndBlood.ogg" type="AudioStream" id=11]
[ext_resource path="res://menus/EditProfileMenu.gd" type="Script" id=12]
[ext_resource path="res://weapons/Weapon_Templates.tscn" type="PackedScene" id=13]
[ext_resource path="res://weapons/WeaponOptionButton.gd" type="Script" id=14]
[ext_resource path="res://assets/videos/splash.webm" type="VideoStream" id=15]
[ext_resource path="res://Loadout.tscn" type="PackedScene" id=16]
[node name="MainMenu" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
theme = ExtResource( 4 )
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="CRTShader" type="ColorRect" parent="CanvasLayer"]
material = ExtResource( 5 )
anchor_left = 0.055
anchor_top = 0.097
anchor_right = 0.555
anchor_bottom = 0.902
margin_left = -0.600006
margin_top = 0.239998
margin_right = -0.599976
margin_bottom = 0.839905
mouse_filter = 2
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SplashScreen" type="VideoPlayer" parent="CanvasLayer"]
visible = false
anchor_right = 1.0
anchor_bottom = 1.0
stream = ExtResource( 15 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TerminalBackground" type="TextureRect" parent="."]
anchor_top = -0.000925926
anchor_right = 1.0
anchor_bottom = 0.999074
margin_left = 1.5874
margin_right = 1.5874
texture = ExtResource( 1 )
expand = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PlayButton" type="Button" parent="."]
anchor_left = 0.755
anchor_top = 0.391
anchor_right = 0.788
anchor_bottom = 0.449
margin_left = -0.600098
margin_top = -0.280029
margin_right = 0.039917
margin_bottom = 0.0799561
__meta__ = {
"_edit_use_anchors_": false
}
[node name="OptionsButton" type="Button" parent="."]
anchor_left = 0.607
anchor_top = 0.711
anchor_right = 0.643
anchor_bottom = 0.831
margin_left = 0.559937
margin_top = 0.119995
margin_right = -0.560059
margin_bottom = 0.519958
__meta__ = {
"_edit_use_anchors_": false
}
[node name="QuitButton" type="Button" parent="."]
anchor_left = 0.618
anchor_top = 0.591
anchor_right = 0.632
anchor_bottom = 0.617
margin_left = -0.560059
margin_top = -0.280029
margin_right = 0.559937
margin_bottom = -0.360046
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PlayMenu" type="Control" parent="."]
anchor_left = 0.055
anchor_top = 0.095
anchor_right = 0.554
anchor_bottom = 0.9
margin_left = -0.600006
margin_top = 0.399994
margin_right = 0.319946
margin_bottom = -6.10352e-05
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PlayMenuButtons" type="VBoxContainer" parent="PlayMenu"]
visible = false
anchor_left = 0.038
anchor_top = 0.046
anchor_right = 0.376
anchor_bottom = 0.97
margin_left = -0.442001
margin_top = 0.0259972
margin_right = 0.415985
margin_bottom = 0.0699463
custom_constants/separation = 12
__meta__ = {
"_edit_use_anchors_": false
}
[node name="CreateGame" type="Button" parent="PlayMenu/PlayMenuButtons"]
margin_top = 38.0
margin_right = 324.0
margin_bottom = 64.0
text = "Create Game"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="JoinGame" type="Button" parent="PlayMenu/PlayMenuButtons"]
margin_right = 324.0
margin_bottom = 26.0
text = "Join Game"
[node name="EditProfile" type="Button" parent="PlayMenu/PlayMenuButtons"]
margin_top = 76.0
margin_right = 324.0
margin_bottom = 102.0
text = "Edit Profile"
[node name="ShootingRange" type="Button" parent="PlayMenu/PlayMenuButtons"]
visible = false
margin_top = 114.0
margin_right = 324.0
margin_bottom = 140.0
text = "Shooting Range"
[node name="JoinGameMenu" type="VBoxContainer" parent="PlayMenu"]
visible = false
anchor_left = 0.038
anchor_top = 0.046
anchor_right = 0.376
anchor_bottom = 0.97
margin_left = -0.403996
margin_top = 1.072
margin_right = 0.453979
margin_bottom = 1.11597
custom_constants/separation = 12
__meta__ = {
"_edit_use_anchors_": false
}
[node name="WeaponsHeader" type="Label" parent="PlayMenu/JoinGameMenu"]
margin_right = 324.0
margin_bottom = 22.0
text = "Weapons"
[node name="Weapons" parent="PlayMenu/JoinGameMenu" instance=ExtResource( 16 )]
[node name="NetworkHeader" type="Label" parent="PlayMenu/JoinGameMenu"]
margin_top = 186.0
margin_right = 324.0
margin_bottom = 208.0
text = "Network"
[node name="Network" type="HSplitContainer" parent="PlayMenu/JoinGameMenu"]
margin_top = 220.0
margin_right = 324.0
margin_bottom = 252.0
custom_constants/separation = 0
split_offset = 100
__meta__ = {
"_edit_use_anchors_": false
}
[node name="IPAddress" type="LineEdit" parent="PlayMenu/JoinGameMenu/Network"]
margin_right = 206.0
margin_bottom = 32.0
text = "192.168.50.66"
max_length = 15
placeholder_text = "IP Address"
[node name="Port" type="LineEdit" parent="PlayMenu/JoinGameMenu/Network"]
margin_left = 214.0
margin_right = 324.0
margin_bottom = 32.0
text = "4000"
max_length = 5
placeholder_text = "Port"
[node name="Join" type="Button" parent="PlayMenu/JoinGameMenu"]
margin_top = 264.0
margin_right = 324.0
margin_bottom = 290.0
text = "Join"
[node name="CreateGameMenu" type="VBoxContainer" parent="PlayMenu"]
visible = false
anchor_left = 0.038
anchor_top = 0.046
anchor_right = 0.376
anchor_bottom = 0.97
margin_left = -0.403996
margin_top = 1.072
margin_right = 0.453979
margin_bottom = 1.11597
custom_constants/separation = 12
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Weapons" parent="PlayMenu/CreateGameMenu" instance=ExtResource( 16 )]
[node name="WeaponsHeader" type="Label" parent="PlayMenu/CreateGameMenu"]
margin_right = 324.0
margin_bottom = 22.0
text = "Weapons"
[node name="PortHeader" type="Label" parent="PlayMenu/CreateGameMenu"]
margin_top = 186.0
margin_right = 324.0
margin_bottom = 208.0
text = "Port"
[node name="Port" type="LineEdit" parent="PlayMenu/CreateGameMenu"]
margin_top = 220.0
margin_right = 324.0
margin_bottom = 252.0
text = "4000"
max_length = 5
placeholder_text = "Port"
[node name="MapHeader" type="Label" parent="PlayMenu/CreateGameMenu"]
margin_top = 264.0
margin_right = 324.0
margin_bottom = 286.0
text = "Map"
[node name="Map" type="OptionButton" parent="PlayMenu/CreateGameMenu"]
margin_top = 298.0
margin_right = 324.0
margin_bottom = 324.0
toggle_mode = false
text = "Shooting Range"
items = [ "Shooting Range", null, false, 0, null ]
selected = 0
[node name="Create" type="Button" parent="PlayMenu/CreateGameMenu"]
margin_top = 336.0
margin_right = 324.0
margin_bottom = 362.0
text = "Create"
[node name="EditProfileMenu" type="Control" parent="."]
visible = false
anchor_left = 0.055
anchor_top = 0.095
anchor_right = 0.554
anchor_bottom = 0.9
margin_left = -0.600006
margin_top = 0.399994
margin_right = 0.319946
margin_bottom = -6.10352e-05
script = ExtResource( 12 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer" type="VBoxContainer" parent="EditProfileMenu"]
anchor_left = 0.038
anchor_top = 0.046
anchor_right = 0.376
anchor_bottom = 0.97
margin_left = -0.442001
margin_top = 0.0259972
margin_right = 0.415985
margin_bottom = 0.0699463
custom_constants/separation = 12
__meta__ = {
"_edit_use_anchors_": false
}
[node name="UserName" type="LineEdit" parent="EditProfileMenu/VBoxContainer"]
margin_right = 324.0
margin_bottom = 32.0
custom_colors/cursor_color = Color( 0.2, 1, 0, 1 )
clear_button_enabled = true
placeholder_text = "Username"
caret_blink = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Save" type="Button" parent="EditProfileMenu/VBoxContainer"]
margin_top = 44.0
margin_right = 324.0
margin_bottom = 70.0
text = "Save"
[node name="SRSetup" type="Control" parent="."]
visible = false
anchor_left = 0.053
anchor_top = 0.097
anchor_right = 0.555
anchor_bottom = 0.901
margin_left = 0.23999
margin_top = 0.239998
margin_right = 0.400024
margin_bottom = -0.0800171
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VBoxContainer2" type="VBoxContainer" parent="SRSetup"]
anchor_left = 0.038
anchor_top = 0.046
anchor_right = 0.376
anchor_bottom = 0.97
margin_left = -0.48
margin_top = 0.0719986
margin_right = 0.377991
margin_bottom = 0.115967
custom_constants/separation = 12
__meta__ = {
"_edit_use_anchors_": false
}
[node name="MapOptions" type="Label" parent="SRSetup/VBoxContainer2"]
margin_right = 326.0
margin_bottom = 22.0
text = "Map"
[node name="Map" type="OptionButton" parent="SRSetup/VBoxContainer2"]
margin_top = 34.0
margin_right = 326.0
margin_bottom = 60.0
toggle_mode = false
text = "Shooting Range"
items = [ "Shooting Range", null, false, 0, null ]
selected = 0
[node name="Weapons" type="Label" parent="SRSetup/VBoxContainer2"]
margin_top = 72.0
margin_right = 326.0
margin_bottom = 94.0
text = "Weapons"
[node name="Weapon1" type="OptionButton" parent="SRSetup/VBoxContainer2"]
margin_top = 106.0
margin_right = 326.0
margin_bottom = 132.0
script = ExtResource( 14 )
[node name="Weapon2" type="OptionButton" parent="SRSetup/VBoxContainer2"]
margin_top = 144.0
margin_right = 326.0
margin_bottom = 170.0
text = "Shotgun"
script = ExtResource( 14 )
[node name="Weapon3" type="OptionButton" parent="SRSetup/VBoxContainer2"]
margin_top = 182.0
margin_right = 326.0
margin_bottom = 208.0
script = ExtResource( 14 )
[node name="Weapon4" type="OptionButton" parent="SRSetup/VBoxContainer2"]
margin_top = 220.0
margin_right = 326.0
margin_bottom = 246.0
script = ExtResource( 14 )
[node name="StartGame" type="Button" parent="SRSetup/VBoxContainer2"]
margin_top = 258.0
margin_right = 326.0
margin_bottom = 284.0
text = "Start Game"
[node name="Templates" parent="SRSetup/VBoxContainer2" instance=ExtResource( 13 )]
position = Vector2( -138.152, -145 )
[node name="OptionsMenu" parent="." instance=ExtResource( 3 )]
visible = false
anchor_left = 0.062
anchor_top = 0.096
anchor_right = 0.555
anchor_bottom = 0.902
margin_left = -14.04
margin_top = 0.32
margin_right = -0.599976
margin_bottom = -0.160095
[node name="KickReason" type="Label" parent="."]
anchor_left = 0.057
anchor_top = 0.096
anchor_right = 0.268
anchor_bottom = 0.138
margin_left = 0.55999
margin_top = 0.32
margin_right = -0.559998
margin_bottom = -0.0400085
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Blip1" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 10 )
bus = "Menu SFX"
[node name="Blip2" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 8 )
bus = "Menu SFX"
[node name="Button1" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 9 )
bus = "Menu SFX"
[node name="Button2" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 7 )
bus = "Menu SFX"
[node name="Hover" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 6 )
bus = "Menu SFX"
[node name="MenuTheme" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 11 )
autoplay = true
bus = "Music"
[connection signal="tree_entered" from="." to="." method="_on_MainMenu_tree_entered"]
[connection signal="finished" from="CanvasLayer/SplashScreen" to="." method="_on_SplashScreen_finished"]
[connection signal="pressed" from="PlayButton" to="." method="_on_PlayButton_pressed"]
[connection signal="pressed" from="OptionsButton" to="." method="_on_OptionsButton_pressed"]
[connection signal="pressed" from="QuitButton" to="." method="_on_QuitButton_pressed"]
[connection signal="mouse_entered" from="PlayMenu/PlayMenuButtons/CreateGame" to="." method="_on_CreateGame_mouse_entered"]
[connection signal="pressed" from="PlayMenu/PlayMenuButtons/CreateGame" to="." method="_on_CreateGame_pressed"]
[connection signal="mouse_entered" from="PlayMenu/PlayMenuButtons/JoinGame" to="." method="_on_JoinGame_mouse_entered"]
[connection signal="pressed" from="PlayMenu/PlayMenuButtons/JoinGame" to="." method="_on_JoinGame_pressed"]
[connection signal="mouse_entered" from="PlayMenu/PlayMenuButtons/EditProfile" to="." method="_on_EditProfile_mouse_entered"]
[connection signal="pressed" from="PlayMenu/PlayMenuButtons/EditProfile" to="." method="_on_EditProfile_pressed"]
[connection signal="mouse_entered" from="PlayMenu/PlayMenuButtons/ShootingRange" to="." method="_on_ShootingRange_mouse_entered"]
[connection signal="pressed" from="PlayMenu/PlayMenuButtons/ShootingRange" to="." method="_on_ShootingRange_pressed"]
[connection signal="pressed" from="PlayMenu/JoinGameMenu/Join" to="." method="_on_Join_pressed"]
[connection signal="pressed" from="PlayMenu/CreateGameMenu/Create" to="." method="_on_Create_pressed"]
[connection signal="pressed" from="EditProfileMenu/VBoxContainer/Save" to="EditProfileMenu" method="_on_Save_pressed"]
[connection signal="pressed" from="SRSetup/VBoxContainer2/StartGame" to="." method="_on_StartGame_pressed"]
[editable path="PlayMenu/JoinGameMenu/Weapons"]
[editable path="PlayMenu/CreateGameMenu/Weapons"]