123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- [gd_scene load_steps=2 format=3 uid="uid://jhdlqsokif5o"]
- [ext_resource type="Script" 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 = 18.0
- offset_right = 142.0
- offset_bottom = 32.0
- size_flags_horizontal = 2
- size_flags_vertical = 0
- text = "Awaiting Players..."
- [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 = 168.0
- offset_top = 393.5
- offset_right = 341.0
- offset_bottom = 407.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 = 30.0
- offset_right = 173.0
- offset_bottom = 54.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 = 66.0
- offset_right = 57.0
- offset_bottom = 80.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 = 85.0
- offset_right = 173.0
- offset_bottom = 109.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 = 31.0
- offset_right = 246.0
- offset_bottom = 51.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 = 87.0
- offset_right = 246.0
- offset_bottom = 107.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 = 125.0
- offset_right = 257.0
- offset_bottom = 139.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"]
|