-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainMenu.tscn
371 lines (332 loc) · 9.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
[gd_scene load_steps=23 format=2]
[ext_resource path="res://MainMenu.gd" type="Script" id=1]
[ext_resource path="res://fonts/Xolonium-Regular.ttf" type="DynamicFontData" id=2]
[ext_resource path="res://art/inky1.png" type="Texture" id=3]
[ext_resource path="res://gui/smallButtonNormal.tres" type="StyleBox" id=4]
[ext_resource path="res://fonts/smallButtonFont.tres" type="DynamicFont" id=5]
[ext_resource path="res://gui/smallButtonHover.tres" type="StyleBox" id=6]
[ext_resource path="res://gui/smallButtonPressed.tres" type="StyleBox" id=7]
[ext_resource path="res://gui/inputNormal.tres" type="StyleBox" id=8]
[ext_resource path="res://gui/dropdownNormal.tres" type="StyleBox" id=9]
[ext_resource path="res://gui/panelNormal.tres" type="StyleBox" id=10]
[ext_resource path="res://fonts/VCR_OSD_MONO_1.001.ttf" type="DynamicFontData" id=11]
[sub_resource type="StyleBoxFlat" id=10]
bg_color = Color( 0.0823529, 0.0823529, 0.0823529, 1 )
[sub_resource type="DynamicFont" id=1]
size = 24
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=2]
size = 24
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=3]
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=4]
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=5]
size = 24
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=6]
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=7]
font_data = ExtResource( 2 )
[sub_resource type="DynamicFont" id=8]
size = 24
font_data = ExtResource( 2 )
[sub_resource type="StyleBoxFlat" id=9]
content_margin_left = 5.0
bg_color = Color( 0, 0, 0, 1 )
border_width_left = 1
border_width_top = 1
border_width_right = 1
border_width_bottom = 1
border_color = Color( 0.262745, 0.231373, 0.65098, 1 )
corner_radius_top_left = 4
corner_radius_top_right = 4
corner_radius_bottom_right = 4
corner_radius_bottom_left = 4
[sub_resource type="DynamicFont" id=11]
size = 100
font_data = ExtResource( 11 )
[node name="MainMenu" type="CanvasLayer"]
script = ExtResource( 1 )
__meta__ = {
"_edit_horizontal_guides_": [ 1790.3, 1507.02, 1510.58, 223.565, 257.237 ],
"_edit_vertical_guides_": [ 812.222, 1093.73, 961.69, 468.356, 1782.35, 1390.94, 1302.27, 1479.61 ]
}
[node name="Panel" type="Panel" parent="."]
margin_left = -4.41791
margin_top = 4.41785
margin_right = 1917.58
margin_bottom = 1088.42
custom_styles/panel = SubResource( 10 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ServerOptionsTitle" type="Label" parent="."]
margin_left = 1101.14
margin_top = 183.204
margin_right = 1489.14
margin_bottom = 213.204
rect_scale = Vector2( 1.5, 1.5 )
custom_fonts/font = SubResource( 1 )
text = "Server Options"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Play" type="Button" parent="."]
margin_left = 372.759
margin_top = 802.27
margin_right = 522.76
margin_bottom = 852.27
rect_scale = Vector2( 1.25, 1.25 )
mouse_default_cursor_shape = 2
custom_styles/hover = ExtResource( 6 )
custom_styles/pressed = ExtResource( 7 )
custom_styles/normal = ExtResource( 4 )
custom_fonts/font = ExtResource( 5 )
text = "Play"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PanelHost" type="Panel" parent="."]
margin_left = 1096.24
margin_top = 661.661
margin_right = 1489.24
margin_bottom = 906.661
rect_scale = Vector2( 1.5, 1.5 )
custom_styles/panel = ExtResource( 10 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LabelPanel" type="Label" parent="PanelHost"]
margin_left = 106.607
margin_top = 6.23633
margin_right = 285.607
margin_bottom = 36.2363
custom_fonts/font = SubResource( 2 )
text = "Create Server"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LabelServer" type="Label" parent="PanelHost"]
margin_left = 1.0
margin_top = 66.0
margin_right = 393.0
margin_bottom = 86.0
custom_fonts/font = SubResource( 3 )
text = "Server name:"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ServerName" type="LineEdit" parent="PanelHost"]
margin_left = 38.691
margin_top = 90.7602
margin_right = 352.691
margin_bottom = 114.76
custom_styles/normal = ExtResource( 8 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LabelPort" type="Label" parent="PanelHost"]
margin_left = 175.758
margin_top = 131.715
margin_right = 215.758
margin_bottom = 151.715
custom_fonts/font = SubResource( 4 )
text = "Port"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ServerPort" type="LineEdit" parent="PanelHost"]
margin_left = 141.72
margin_top = 157.429
margin_right = 251.72
margin_bottom = 181.429
custom_styles/normal = ExtResource( 8 )
text = "7777"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ServerCreate" type="Button" parent="PanelHost"]
margin_left = 152.453
margin_top = 200.521
margin_right = 329.453
margin_bottom = 259.521
rect_scale = Vector2( 0.5, 0.5 )
mouse_default_cursor_shape = 2
custom_styles/hover = ExtResource( 6 )
custom_styles/pressed = ExtResource( 7 )
custom_styles/normal = ExtResource( 4 )
custom_fonts/font = ExtResource( 5 )
text = "Create"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PanelJoin" type="Panel" parent="."]
margin_left = 1095.4
margin_top = 255.3
margin_right = 1489.4
margin_bottom = 503.299
rect_scale = Vector2( 1.5, 1.5 )
custom_styles/panel = ExtResource( 10 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LabelPanel" type="Label" parent="PanelJoin"]
margin_left = 2.0
margin_top = 8.0
margin_right = 392.0
margin_bottom = 38.0
custom_fonts/font = SubResource( 5 )
text = "Join Server"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LabelIP" type="Label" parent="PanelJoin"]
margin_left = 144.349
margin_top = 63.5416
margin_right = 248.349
margin_bottom = 83.5416
custom_fonts/font = SubResource( 6 )
text = "IP"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="JoinIP" type="LineEdit" parent="PanelJoin"]
margin_left = 136.398
margin_top = 88.9882
margin_right = 255.398
margin_bottom = 112.988
custom_styles/normal = ExtResource( 8 )
text = "127.0.0.1"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LabelPort" type="Label" parent="PanelJoin"]
margin_left = 141.894
margin_top = 130.514
margin_right = 249.894
margin_bottom = 150.514
custom_fonts/font = SubResource( 7 )
text = "Port"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="JoinPort" type="LineEdit" parent="PanelJoin"]
margin_left = 139.62
margin_top = 154.29
margin_right = 251.62
margin_bottom = 178.29
custom_styles/normal = ExtResource( 8 )
text = "7777"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="JoinButton" type="Button" parent="PanelJoin"]
margin_left = 152.134
margin_top = 198.24
margin_right = 329.134
margin_bottom = 257.24
rect_scale = Vector2( 0.5, 0.5 )
mouse_default_cursor_shape = 2
custom_styles/hover = ExtResource( 6 )
custom_styles/pressed = ExtResource( 7 )
custom_styles/normal = ExtResource( 4 )
custom_fonts/font = ExtResource( 5 )
text = "Join"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PanelPlayer" type="Panel" parent="."]
margin_left = 124.58
margin_top = 261.139
margin_right = 514.58
margin_bottom = 545.139
rect_scale = Vector2( 1.75, 1.75 )
custom_styles/panel = ExtResource( 10 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Profile" type="Label" parent="PanelPlayer"]
margin_left = 2.7199
margin_top = -52.4758
margin_right = 390.721
margin_bottom = -22.4758
custom_fonts/font = SubResource( 1 )
text = "Profile"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LabelName" type="Label" parent="PanelPlayer"]
margin_left = 6.0
margin_top = 13.0
margin_right = 388.0
margin_bottom = 43.0
custom_fonts/font = SubResource( 1 )
text = "Player name:"
align = 1
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PlayerName" type="LineEdit" parent="PanelPlayer"]
margin_left = 43.2176
margin_top = 63.4977
margin_right = 352.217
margin_bottom = 87.4977
custom_styles/normal = ExtResource( 8 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="LabelCharacter" type="Label" parent="PanelPlayer"]
margin_left = 9.0
margin_top = 120.999
margin_right = 387.0
margin_bottom = 150.999
custom_fonts/font = SubResource( 8 )
text = "Character select:"
align = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PlayerCharacter" type="Sprite" parent="PanelPlayer"]
position = Vector2( 154.948, 205.403 )
scale = Vector2( 0.690015, 0.603764 )
texture = ExtResource( 3 )
[node name="PlayerColorSelect" type="OptionButton" parent="PanelPlayer"]
margin_left = 204.729
margin_top = 193.204
margin_right = 285.729
margin_bottom = 218.204
mouse_default_cursor_shape = 2
custom_styles/hover = SubResource( 9 )
custom_styles/normal = ExtResource( 9 )
text = "Inky"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Logo" type="Label" parent="."]
margin_left = 755.601
margin_top = 26.0038
margin_right = 1168.6
margin_bottom = 205.004
custom_fonts/font = SubResource( 11 )
text = "GHOSTED
"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="Play" to="." method="_on_ServerCreate_pressed"]
[connection signal="pressed" from="PanelHost/ServerCreate" to="." method="_on_ServerCreate_pressed"]
[connection signal="pressed" from="PanelJoin/JoinButton" to="." method="_on_JoinButton_pressed"]