2020-10-19 00:44:23 +02:00
|
|
|
[gd_scene load_steps=2 format=2]
|
|
|
|
|
|
|
|
[ext_resource path="res://logic/Lobby.cs" type="Script" id=1]
|
|
|
|
|
|
|
|
[node name="Lobby" type="Control"]
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
2022-03-26 11:00:50 +01:00
|
|
|
offset_left = -320.0
|
|
|
|
offset_top = -200.0
|
|
|
|
offset_right = 320.0
|
|
|
|
offset_bottom = 200.0
|
2020-10-19 00:44:23 +02:00
|
|
|
size_flags_horizontal = 2
|
|
|
|
size_flags_vertical = 2
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="Title" type="Label" parent="."]
|
2022-03-26 11:00:50 +01:00
|
|
|
offset_left = 210.0
|
|
|
|
offset_top = 40.0
|
|
|
|
offset_right = 430.0
|
|
|
|
offset_bottom = 80.0
|
2020-10-19 00:44:23 +02:00
|
|
|
size_flags_horizontal = 2
|
|
|
|
size_flags_vertical = 0
|
|
|
|
text = "Multiplayer Pong"
|
|
|
|
align = 1
|
|
|
|
valign = 1
|
|
|
|
|
|
|
|
[node name="LobbyPanel" type="Panel" parent="."]
|
2022-03-26 11:00:50 +01:00
|
|
|
offset_left = 210.0
|
|
|
|
offset_top = 160.0
|
|
|
|
offset_right = 430.0
|
|
|
|
offset_bottom = 270.0
|
2020-10-19 00:44:23 +02:00
|
|
|
size_flags_horizontal = 2
|
|
|
|
size_flags_vertical = 2
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="AddressLabel" type="Label" parent="LobbyPanel"]
|
2022-03-26 11:00:50 +01:00
|
|
|
offset_left = 10.0
|
|
|
|
offset_top = 10.0
|
|
|
|
offset_right = 62.0
|
|
|
|
offset_bottom = 24.0
|
2020-10-19 00:44:23 +02:00
|
|
|
size_flags_horizontal = 2
|
|
|
|
size_flags_vertical = 0
|
|
|
|
text = "Address"
|
|
|
|
|
|
|
|
[node name="Address" type="LineEdit" parent="LobbyPanel"]
|
2022-03-26 11:00:50 +01:00
|
|
|
offset_left = 10.0
|
|
|
|
offset_top = 30.0
|
|
|
|
offset_right = 210.0
|
|
|
|
offset_bottom = 54.0
|
2020-10-19 00:44:23 +02:00
|
|
|
size_flags_horizontal = 2
|
|
|
|
size_flags_vertical = 2
|
|
|
|
text = "127.0.0.1"
|
|
|
|
|
|
|
|
[node name="HostButton" type="Button" parent="LobbyPanel"]
|
2022-03-26 11:00:50 +01:00
|
|
|
offset_left = 10.0
|
|
|
|
offset_top = 60.0
|
|
|
|
offset_right = 90.0
|
|
|
|
offset_bottom = 80.0
|
2020-10-19 00:44:23 +02:00
|
|
|
size_flags_horizontal = 2
|
|
|
|
size_flags_vertical = 2
|
|
|
|
text = "Host"
|
|
|
|
|
|
|
|
[node name="JoinButton" type="Button" parent="LobbyPanel"]
|
2022-03-26 11:00:50 +01:00
|
|
|
offset_left = 130.0
|
|
|
|
offset_top = 60.0
|
|
|
|
offset_right = 210.0
|
|
|
|
offset_bottom = 80.0
|
2020-10-19 00:44:23 +02:00
|
|
|
size_flags_horizontal = 2
|
|
|
|
size_flags_vertical = 2
|
|
|
|
text = "Join"
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="StatusOk" type="Label" parent="LobbyPanel"]
|
2022-03-26 11:00:50 +01:00
|
|
|
offset_left = 10.0
|
|
|
|
offset_top = 90.0
|
|
|
|
offset_right = 210.0
|
|
|
|
offset_bottom = 104.0
|
2020-10-19 00:44:23 +02:00
|
|
|
size_flags_horizontal = 2
|
|
|
|
size_flags_vertical = 0
|
2022-03-26 11:00:50 +01:00
|
|
|
custom_colors/font_color = Color(0, 1, 0.015625, 1)
|
2020-10-19 00:44:23 +02:00
|
|
|
align = 1
|
|
|
|
|
|
|
|
[node name="StatusFail" type="Label" parent="LobbyPanel"]
|
2022-03-26 11:00:50 +01:00
|
|
|
offset_left = 10.0
|
|
|
|
offset_top = 90.0
|
|
|
|
offset_right = 210.0
|
|
|
|
offset_bottom = 104.0
|
2020-10-19 00:44:23 +02:00
|
|
|
size_flags_horizontal = 2
|
|
|
|
size_flags_vertical = 0
|
2022-03-26 11:00:50 +01:00
|
|
|
custom_colors/font_color = Color(1, 0, 0, 1)
|
2020-10-19 00:44:23 +02:00
|
|
|
align = 1
|
2020-12-09 01:36:00 +01:00
|
|
|
|
2020-10-19 00:44:23 +02:00
|
|
|
[connection signal="pressed" from="LobbyPanel/HostButton" to="LobbyPanel" method="OnHostPressed"]
|
|
|
|
[connection signal="pressed" from="LobbyPanel/JoinButton" to="LobbyPanel" method="OnJoinPressed"]
|