-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNode2D.tscn
340 lines (303 loc) · 7.59 KB
/
Node2D.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
[gd_scene load_steps=4 format=2]
[ext_resource path="res://Join.gd" type="Script" id=2]
[ext_resource path="res://Host.gd" type="Script" id=3]
[ext_resource path="res://Lobby.gd" type="Script" id=4]
[node name="Node2D" type="Node2D"]
[node name="Camera2D" type="Camera2D" parent="."]
current = true
[node name="Lobby" type="Node" parent="."]
script = ExtResource( 4 )
[node name="LobbyMenu" type="Panel" parent="."]
margin_left = -255.255
margin_top = -162.01
margin_right = 257.745
margin_bottom = 160.99
__meta__ = {
"_edit_use_anchors_": false
}
[node name="NameLabel" type="Label" parent="LobbyMenu"]
margin_left = 122.434
margin_top = 91.9439
margin_right = 215.434
margin_bottom = 105.944
text = "Name"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="IPLabel" type="Label" parent="LobbyMenu"]
margin_left = 265.189
margin_top = 131.888
margin_right = 348.189
margin_bottom = 147.888
text = "IP"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="IP text" type="TextEdit" parent="LobbyMenu"]
margin_left = 296.0
margin_top = 126.0
margin_right = 429.0
margin_bottom = 156.0
text = "127.0.0.1"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Name" type="TextEdit" parent="LobbyMenu"]
margin_left = 179.0
margin_top = 87.0
margin_right = 428.0
margin_bottom = 117.0
text = "Bobby"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Host" type="Button" parent="LobbyMenu"]
margin_left = 117.0
margin_top = 133.0
margin_right = 239.0
margin_bottom = 197.0
rect_pivot_offset = Vector2( 79.5671, 52.7557 )
text = "Host"
script = ExtResource( 3 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Join" type="Button" parent="LobbyMenu"]
margin_left = 262.781
margin_top = 165.383
margin_right = 427.781
margin_bottom = 194.383
rect_pivot_offset = Vector2( 79.5671, 52.7557 )
text = "Join"
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Game" type="Panel" parent="."]
margin_left = -253.794
margin_top = -163.0
margin_right = 254.206
margin_bottom = 160.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="NumPlayers" type="Label" parent="Game"]
margin_left = 7.16376
margin_top = 11.1118
margin_right = 47.1638
margin_bottom = 25.1118
text = "0"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="PlayersLabel" type="Label" parent="Game"]
margin_left = 526.157
margin_top = 41.3359
margin_right = 576.157
margin_bottom = 55.3359
text = "Players:"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Players" type="Label" parent="Game"]
margin_left = 525.224
margin_top = 65.4983
margin_right = 628.224
margin_bottom = 225.498
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Deck" type="Label" parent="Game"]
margin_left = 157.267
margin_top = 100.641
margin_right = 207.267
margin_bottom = 114.641
text = "Deck"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="DeckList" type="Label" parent="Game"]
margin_left = 156.0
margin_top = 120.0
margin_right = 336.0
margin_bottom = 172.0
text = "[]
"
autowrap = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="P1" type="Panel" parent="Game"]
margin_left = 209.757
margin_top = 253.054
margin_right = 314.757
margin_bottom = 293.054
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Name" type="Label" parent="Game/P1"]
margin_left = 5.36
margin_top = 6.98241
margin_right = 73.36
margin_bottom = 20.9824
text = "P1 (dealer)"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Hand" type="Label" parent="Game/P1"]
margin_left = 3.31757
margin_top = 24.7279
margin_right = 71.3176
margin_bottom = 38.7279
text = "[]"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="P2" type="Panel" parent="Game"]
margin_left = 9.07932
margin_top = 200.729
margin_right = 114.079
margin_bottom = 240.729
rect_rotation = -90.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Name" type="Label" parent="Game/P2"]
margin_left = 5.36
margin_top = 6.98241
margin_right = 73.36
margin_bottom = 20.9824
text = "P2"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Hand" type="Label" parent="Game/P2"]
margin_left = 3.31757
margin_top = 24.7279
margin_right = 71.3176
margin_bottom = 38.7279
text = "[]"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="P3" type="Panel" parent="Game"]
margin_left = 216.298
margin_top = 21.2942
margin_right = 321.298
margin_bottom = 61.2942
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Name" type="Label" parent="Game/P3"]
margin_left = 5.36
margin_top = 6.98241
margin_right = 73.36
margin_bottom = 20.9824
text = "P3
"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Hand" type="Label" parent="Game/P3"]
margin_left = 3.31757
margin_top = 24.7279
margin_right = 71.3176
margin_bottom = 38.7279
text = "[]"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="P4" type="Panel" parent="Game"]
margin_left = 495.464
margin_top = 117.484
margin_right = 600.464
margin_bottom = 157.484
rect_rotation = 90.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Name" type="Label" parent="Game/P4"]
margin_left = 5.36
margin_top = 6.98241
margin_right = 73.36
margin_bottom = 20.9824
text = "P4"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Hand" type="Label" parent="Game/P4"]
margin_left = 3.31757
margin_top = 24.7279
margin_right = 71.3176
margin_bottom = 38.7279
text = "[]"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="DealerButtons" type="Node2D" parent="Game"]
[node name="Deal 1 P1" type="Button" parent="Game/DealerButtons"]
margin_left = 167.884
margin_top = 264.042
margin_right = 208.884
margin_bottom = 284.042
text = "Deal"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Deal 1 P2" type="Button" parent="Game/DealerButtons"]
margin_left = 11.4773
margin_top = 204.338
margin_right = 52.4773
margin_bottom = 224.338
text = "Deal"
[node name="Deal 1 P3" type="Button" parent="Game/DealerButtons"]
margin_left = 168.725
margin_top = 31.1132
margin_right = 209.725
margin_bottom = 51.1132
text = "Deal"
[node name="Deal 1 P4" type="Button" parent="Game/DealerButtons"]
margin_left = 453.089
margin_top = 92.9492
margin_right = 494.089
margin_bottom = 112.949
text = "Deal"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Shuffel Deck" type="Button" parent="Game/DealerButtons"]
margin_left = 145.134
margin_top = 313.598
margin_right = 236.134
margin_bottom = 333.598
text = "Shuffel Deck"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Deal All" type="Button" parent="Game/DealerButtons"]
margin_left = 272.919
margin_top = 314.392
margin_right = 334.919
margin_bottom = 334.392
text = "Deal All"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Reset" type="Button" parent="Game/DealerButtons"]
margin_left = 383.244
margin_top = 338.996
margin_right = 445.244
margin_bottom = 358.996
text = "Reset"
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="LobbyMenu/Host" to="Lobby" method="_on_Host_pressed"]
[connection signal="pressed" from="LobbyMenu/Join" to="Lobby" method="_on_Join_pressed"]
[connection signal="pressed" from="Game/DealerButtons/Deal 1 P1" to="Lobby" method="_on_Deal_1_P1_pressed"]
[connection signal="pressed" from="Game/DealerButtons/Deal 1 P2" to="Lobby" method="_on_Deal_1_P2_pressed"]
[connection signal="pressed" from="Game/DealerButtons/Deal 1 P3" to="Lobby" method="_on_Deal_1_P3_pressed"]
[connection signal="pressed" from="Game/DealerButtons/Deal 1 P4" to="Lobby" method="_on_Deal_1_P4_pressed"]
[connection signal="pressed" from="Game/DealerButtons/Shuffel Deck" to="Lobby" method="_on_Shuffel_Deck_pressed"]
[connection signal="pressed" from="Game/DealerButtons/Deal All" to="Lobby" method="_on_Deal_All_pressed"]
[connection signal="pressed" from="Game/DealerButtons/Reset" to="Lobby" method="_on_Reset_pressed"]