blob: 60bf28eb3c0af50e13273c3bd12088851a6ce639 (
plain)
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
|
[gd_scene load_steps=3 format=3 uid="uid://c72pr86s5ai6k"]
[ext_resource type="Script" path="res://Network/Lobby.gd" id="1"]
[ext_resource type="PackedScene" uid="uid://b0fuyoa5jbxn0" path="res://UI/Menu/MenuButton.tscn" id="2"]
[node name="Lobby" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1")
[node name="CenterContainer" type="CenterContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Connect" type="Panel" parent="CenterContainer"]
custom_minimum_size = Vector2(180, 150)
layout_mode = 2
[node name="Name" type="LineEdit" parent="CenterContainer/Connect"]
layout_mode = 0
offset_left = 8.0
offset_top = 8.0
offset_right = 168.0
offset_bottom = 32.0
placeholder_text = "Name"
[node name="IP" type="LineEdit" parent="CenterContainer/Connect"]
layout_mode = 0
offset_left = 8.0
offset_top = 40.0
offset_right = 168.0
offset_bottom = 64.0
placeholder_text = "IP"
[node name="Host" type="Button" parent="CenterContainer/Connect"]
layout_mode = 0
offset_left = 8.0
offset_top = 112.0
offset_right = 64.0
offset_bottom = 136.0
text = "Host"
[node name="Join" type="Button" parent="CenterContainer/Connect"]
layout_mode = 0
offset_left = 112.0
offset_top = 112.0
offset_right = 168.0
offset_bottom = 136.0
text = "Join"
[node name="Error" type="Label" parent="CenterContainer/Connect"]
layout_mode = 0
offset_left = 8.0
offset_top = 72.0
offset_right = 168.0
offset_bottom = 104.0
theme_override_colors/font_color = Color(1, 0.137255, 0.137255, 1)
[node name="CenterContainer2" type="CenterContainer" parent="."]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Players" type="Panel" parent="CenterContainer2"]
custom_minimum_size = Vector2(260, 460)
layout_mode = 2
[node name="Label" type="Label" parent="CenterContainer2/Players"]
layout_mode = 0
offset_left = 16.0
offset_top = 16.0
offset_right = 64.0
offset_bottom = 32.0
text = "Lobby"
[node name="LocalIP" type="Label" parent="CenterContainer2/Players"]
layout_mode = 0
offset_left = 128.0
offset_top = 24.0
offset_right = 240.0
offset_bottom = 38.0
text = "000.000.000.000"
[node name="RemoteIP" type="Label" parent="CenterContainer2/Players"]
layout_mode = 0
offset_left = 128.0
offset_top = 8.0
offset_right = 240.0
offset_bottom = 22.0
text = "000.000.000.000"
[node name="List" type="ItemList" parent="CenterContainer2/Players"]
layout_mode = 0
offset_left = 16.0
offset_top = 48.0
offset_right = 240.0
offset_bottom = 400.0
[node name="Start" type="Button" parent="CenterContainer2/Players"]
layout_mode = 0
offset_left = 64.0
offset_top = 416.0
offset_right = 192.0
offset_bottom = 448.0
text = "START!"
[node name="Back" type="Button" parent="CenterContainer2/Players"]
layout_mode = 0
offset_left = 16.0
offset_top = 416.0
offset_right = 48.0
offset_bottom = 448.0
text = "<"
[node name="ErrorDialog" type="AcceptDialog" parent="."]
[node name="MenuButton" parent="." instance=ExtResource("2")]
layout_mode = 0
anchors_preset = 0
anchor_right = 0.0
anchor_bottom = 0.0
offset_left = 1.0
offset_top = 1.0
offset_right = 54.0
offset_bottom = 32.0
[node name="HTTPRequest" type="HTTPRequest" parent="."]
[connection signal="pressed" from="CenterContainer/Connect/Host" to="." method="_on_Host_pressed"]
[connection signal="pressed" from="CenterContainer/Connect/Join" to="." method="_on_Join_pressed"]
[connection signal="pressed" from="CenterContainer2/Players/Start" to="." method="_on_Start_pressed"]
[connection signal="pressed" from="CenterContainer2/Players/Back" to="." method="_on_Back_pressed"]
|