mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-04 15:00:09 +01:00
175 lines
4.1 KiB
Plaintext
175 lines
4.1 KiB
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://xpk2m2jmpaox"]
|
|
|
|
[ext_resource type="Script" uid="uid://tpi1sqvgg2qf" path="res://lobby.gd" id="1"]
|
|
|
|
[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
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
script = ExtResource("1")
|
|
|
|
[node name="Players" type="Panel" parent="."]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -126.0
|
|
offset_top = -177.5
|
|
offset_right = 126.0
|
|
offset_bottom = 177.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
|
|
[node name="Label" type="Label" parent="Players"]
|
|
layout_mode = 0
|
|
offset_left = 26.0
|
|
offset_top = 7.0
|
|
offset_right = 229.0
|
|
offset_bottom = 30.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 0
|
|
text = "Awaiting Players..."
|
|
horizontal_alignment = 1
|
|
|
|
[node name="Start" type="Button" parent="Players"]
|
|
layout_mode = 0
|
|
offset_left = 68.0
|
|
offset_top = 307.0
|
|
offset_right = 193.0
|
|
offset_bottom = 336.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
text = "START!"
|
|
|
|
[node name="List" type="ItemList" parent="Players"]
|
|
layout_mode = 0
|
|
offset_left = 25.0
|
|
offset_top = 37.0
|
|
offset_right = 229.0
|
|
offset_bottom = 296.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
|
|
[node name="PortForward" type="Label" parent="Players"]
|
|
layout_mode = 0
|
|
offset_left = -124.0
|
|
offset_top = 375.0
|
|
offset_right = 128.0
|
|
offset_bottom = 429.0
|
|
theme_override_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."
|
|
|
|
[node name="FindPublicIP" type="LinkButton" parent="Players"]
|
|
layout_mode = 0
|
|
offset_left = 200.0
|
|
offset_top = 409.5
|
|
offset_right = 408.0
|
|
offset_bottom = 432.5
|
|
text = "Find your public IP address"
|
|
|
|
[node name="Connect" type="Panel" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -138.5
|
|
offset_top = -83.5
|
|
offset_right = 138.5
|
|
offset_bottom = 83.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
|
|
[node name="NameLabel" type="Label" parent="Connect"]
|
|
layout_mode = 0
|
|
offset_left = 14.0
|
|
offset_top = 11.0
|
|
offset_right = 56.0
|
|
offset_bottom = 25.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 0
|
|
text = "Name:"
|
|
|
|
[node name="Name" type="LineEdit" parent="Connect"]
|
|
layout_mode = 0
|
|
offset_left = 17.0
|
|
offset_top = 38.0
|
|
offset_right = 173.0
|
|
offset_bottom = 69.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
text = "The Warrior"
|
|
|
|
[node name="IPLabel" type="Label" parent="Connect"]
|
|
layout_mode = 0
|
|
offset_left = 15.0
|
|
offset_top = 74.0
|
|
offset_right = 57.0
|
|
offset_bottom = 97.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 0
|
|
theme_override_font_sizes/font_size = 16
|
|
text = "IP:"
|
|
|
|
[node name="IPAddress" type="LineEdit" parent="Connect"]
|
|
layout_mode = 0
|
|
offset_left = 17.0
|
|
offset_top = 102.0
|
|
offset_right = 173.0
|
|
offset_bottom = 133.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
text = "127.0.0.1"
|
|
|
|
[node name="Host" type="Button" parent="Connect"]
|
|
layout_mode = 0
|
|
offset_left = 181.0
|
|
offset_top = 38.0
|
|
offset_right = 246.0
|
|
offset_bottom = 69.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
text = "Host"
|
|
|
|
[node name="Join" type="Button" parent="Connect"]
|
|
layout_mode = 0
|
|
offset_left = 181.0
|
|
offset_top = 102.0
|
|
offset_right = 246.0
|
|
offset_bottom = 133.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
text = "Join"
|
|
|
|
[node name="ErrorLabel" type="Label" parent="Connect"]
|
|
layout_mode = 0
|
|
offset_left = 15.0
|
|
offset_top = 138.0
|
|
offset_right = 257.0
|
|
offset_bottom = 161.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 0
|
|
theme_override_colors/font_color = Color(0.820312, 0.291595, 0.291595, 1)
|
|
|
|
[node name="ErrorDialog" type="AcceptDialog" parent="."]
|
|
|
|
[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"]
|