123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- [gd_scene load_steps=2 format=2]
- [ext_resource path="res://logic/lobby.gd" 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
- margin_left = -320.0
- margin_top = -200.0
- margin_right = 320.0
- margin_bottom = 200.0
- size_flags_horizontal = 2
- size_flags_vertical = 2
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="Title" type="Label" parent="."]
- margin_left = 210.0
- margin_top = 40.0
- margin_right = 430.0
- margin_bottom = 80.0
- size_flags_horizontal = 2
- size_flags_vertical = 0
- text = "Multiplayer Pong"
- align = 1
- valign = 1
- [node name="LobbyPanel" type="Panel" parent="."]
- margin_left = 210.0
- margin_top = 160.0
- margin_right = 430.0
- margin_bottom = 270.0
- size_flags_horizontal = 2
- size_flags_vertical = 2
- script = ExtResource( 1 )
- [node name="AddressLabel" type="Label" parent="LobbyPanel"]
- margin_left = 10.0
- margin_top = 10.0
- margin_right = 62.0
- margin_bottom = 24.0
- size_flags_horizontal = 2
- size_flags_vertical = 0
- text = "Address"
- [node name="Address" type="LineEdit" parent="LobbyPanel"]
- margin_left = 10.0
- margin_top = 30.0
- margin_right = 210.0
- margin_bottom = 54.0
- size_flags_horizontal = 2
- size_flags_vertical = 2
- text = "127.0.0.1"
- [node name="HostButton" type="Button" parent="LobbyPanel"]
- margin_left = 10.0
- margin_top = 60.0
- margin_right = 90.0
- margin_bottom = 80.0
- size_flags_horizontal = 2
- size_flags_vertical = 2
- text = "Host"
- [node name="JoinButton" type="Button" parent="LobbyPanel"]
- margin_left = 130.0
- margin_top = 60.0
- margin_right = 210.0
- margin_bottom = 80.0
- size_flags_horizontal = 2
- size_flags_vertical = 2
- text = "Join"
- [node name="StatusOk" type="Label" parent="LobbyPanel"]
- margin_left = 10.0
- margin_top = 90.0
- margin_right = 210.0
- margin_bottom = 104.0
- size_flags_horizontal = 2
- size_flags_vertical = 0
- custom_colors/font_color = Color( 0, 1, 0.015625, 1 )
- align = 1
- [node name="StatusFail" type="Label" parent="LobbyPanel"]
- margin_left = 10.0
- margin_top = 90.0
- margin_right = 210.0
- margin_bottom = 104.0
- size_flags_horizontal = 2
- size_flags_vertical = 0
- custom_colors/font_color = Color( 1, 0, 0, 1 )
- align = 1
- [node name="PortForward" type="Label" parent="LobbyPanel"]
- visible = false
- margin_left = -128.0
- margin_top = 136.0
- margin_right = 124.0
- margin_bottom = 184.0
- custom_constants/line_spacing = 6
- text = "If you want non-LAN clients to connect,
- make sure the port 8910 in UDP
- is forwarded on your router."
- align = 1
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [node name="FindPublicIP" type="LinkButton" parent="LobbyPanel"]
- visible = false
- margin_left = 155.0
- margin_top = 152.0
- margin_right = 328.0
- margin_bottom = 166.0
- text = "Find your public IP address"
- __meta__ = {
- "_edit_use_anchors_": false
- }
- [connection signal="pressed" from="LobbyPanel/HostButton" to="LobbyPanel" method="_on_host_pressed"]
- [connection signal="pressed" from="LobbyPanel/JoinButton" to="LobbyPanel" method="_on_join_pressed"]
- [connection signal="pressed" from="LobbyPanel/FindPublicIP" to="LobbyPanel" method="_on_find_public_ip_pressed"]
|