mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
158 lines
3.7 KiB
Plaintext
158 lines
3.7 KiB
Plaintext
[gd_scene load_steps=2 format=2]
|
|
|
|
[ext_resource path="res://lobby.gd" type="Script" id=1]
|
|
|
|
[node name="Lobby" type="Control"]
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
script = ExtResource( 1 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Players" type="Panel" parent="."]
|
|
visible = false
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -126.0
|
|
margin_top = -177.5
|
|
margin_right = 126.0
|
|
margin_bottom = 177.5
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
|
|
[node name="Label" type="Label" parent="Players"]
|
|
margin_left = 26.0
|
|
margin_top = 18.0
|
|
margin_right = 142.0
|
|
margin_bottom = 32.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 0
|
|
text = "Awaiting Players..."
|
|
|
|
[node name="Start" type="Button" parent="Players"]
|
|
margin_left = 68.0
|
|
margin_top = 307.0
|
|
margin_right = 193.0
|
|
margin_bottom = 336.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
text = "START!"
|
|
|
|
[node name="List" type="ItemList" parent="Players"]
|
|
margin_left = 25.0
|
|
margin_top = 37.0
|
|
margin_right = 229.0
|
|
margin_bottom = 296.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
|
|
[node name="PortForward" type="Label" parent="Players"]
|
|
margin_left = -124.0
|
|
margin_top = 375.0
|
|
margin_right = 128.0
|
|
margin_bottom = 429.0
|
|
custom_constants/line_spacing = 6
|
|
text = "If you want non-LAN clients to connect,
|
|
make sure the port 10567 in UDP
|
|
is forwarded on your router."
|
|
align = 1
|
|
|
|
[node name="FindPublicIP" type="LinkButton" parent="Players"]
|
|
margin_left = 168.0
|
|
margin_top = 393.5
|
|
margin_right = 341.0
|
|
margin_bottom = 407.5
|
|
text = "Find your public IP address"
|
|
|
|
[node name="Connect" type="Panel" parent="."]
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -138.5
|
|
margin_top = -83.5
|
|
margin_right = 138.5
|
|
margin_bottom = 83.5
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
|
|
[node name="NameLabel" type="Label" parent="Connect"]
|
|
margin_left = 14.0
|
|
margin_top = 11.0
|
|
margin_right = 56.0
|
|
margin_bottom = 25.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 0
|
|
text = "Name:"
|
|
|
|
[node name="Name" type="LineEdit" parent="Connect"]
|
|
margin_left = 17.0
|
|
margin_top = 30.0
|
|
margin_right = 173.0
|
|
margin_bottom = 54.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
text = "The Warrior"
|
|
|
|
[node name="IPLabel" type="Label" parent="Connect"]
|
|
margin_left = 15.0
|
|
margin_top = 66.0
|
|
margin_right = 57.0
|
|
margin_bottom = 80.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 0
|
|
text = "IP:"
|
|
|
|
[node name="IPAddress" type="LineEdit" parent="Connect"]
|
|
margin_left = 17.0
|
|
margin_top = 85.0
|
|
margin_right = 173.0
|
|
margin_bottom = 109.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
text = "127.0.0.1"
|
|
|
|
[node name="Host" type="Button" parent="Connect"]
|
|
margin_left = 181.0
|
|
margin_top = 31.0
|
|
margin_right = 246.0
|
|
margin_bottom = 51.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
text = "Host"
|
|
|
|
[node name="Join" type="Button" parent="Connect"]
|
|
margin_left = 181.0
|
|
margin_top = 87.0
|
|
margin_right = 246.0
|
|
margin_bottom = 107.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
text = "Join"
|
|
|
|
[node name="ErrorLabel" type="Label" parent="Connect"]
|
|
margin_left = 15.0
|
|
margin_top = 125.0
|
|
margin_right = 257.0
|
|
margin_bottom = 139.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 0
|
|
custom_colors/font_color = Color( 0.820312, 0.291595, 0.291595, 1 )
|
|
align = 1
|
|
|
|
[node name="ErrorDialog" type="AcceptDialog" parent="."]
|
|
margin_right = 55.0
|
|
margin_bottom = 58.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
|
|
[connection signal="pressed" from="Players/Start" to="." method="_on_start_pressed"]
|
|
[connection signal="pressed" from="Players/FindPublicIP" to="." method="_on_find_public_ip_pressed"]
|
|
[connection signal="pressed" from="Connect/Host" to="." method="_on_host_pressed"]
|
|
[connection signal="pressed" from="Connect/Join" to="." method="_on_join_pressed"]
|