| 
 | 1 | +[gd_scene format=3 uid="uid://f85s2avde6r4"]  | 
 | 2 | + | 
 | 3 | +[node name="Lobby" type="Control"]  | 
 | 4 | +layout_mode = 3  | 
 | 5 | +anchors_preset = 8  | 
 | 6 | +anchor_left = 0.5  | 
 | 7 | +anchor_top = 0.5  | 
 | 8 | +anchor_right = 0.5  | 
 | 9 | +anchor_bottom = 0.5  | 
 | 10 | +offset_left = -320.0  | 
 | 11 | +offset_top = -200.0  | 
 | 12 | +offset_right = 320.0  | 
 | 13 | +offset_bottom = 200.0  | 
 | 14 | +grow_horizontal = 2  | 
 | 15 | +grow_vertical = 2  | 
 | 16 | +size_flags_horizontal = 2  | 
 | 17 | +size_flags_vertical = 2  | 
 | 18 | + | 
 | 19 | +[node name="Title" type="Label" parent="."]  | 
 | 20 | +layout_mode = 1  | 
 | 21 | +anchors_preset = 8  | 
 | 22 | +anchor_left = 0.5  | 
 | 23 | +anchor_top = 0.5  | 
 | 24 | +anchor_right = 0.5  | 
 | 25 | +anchor_bottom = 0.5  | 
 | 26 | +offset_left = -110.0  | 
 | 27 | +offset_top = -156.0  | 
 | 28 | +offset_right = 110.0  | 
 | 29 | +offset_bottom = -116.0  | 
 | 30 | +grow_horizontal = 2  | 
 | 31 | +grow_vertical = 2  | 
 | 32 | +size_flags_horizontal = 2  | 
 | 33 | +size_flags_vertical = 0  | 
 | 34 | +theme_override_font_sizes/font_size = 32  | 
 | 35 | +text = "Multiplayer Pong"  | 
 | 36 | +horizontal_alignment = 1  | 
 | 37 | +vertical_alignment = 1  | 
 | 38 | + | 
 | 39 | +[node name="LobbyPanel" type="Lobby" parent="." node_paths=PackedStringArray("address", "host_button", "join_button", "status_ok", "status_fail", "port_forward_label", "find_public_ip_button")]  | 
 | 40 | +address = NodePath("Address")  | 
 | 41 | +host_button = NodePath("HostButton")  | 
 | 42 | +join_button = NodePath("JoinButton")  | 
 | 43 | +status_ok = NodePath("StatusOk")  | 
 | 44 | +status_fail = NodePath("StatusFail")  | 
 | 45 | +port_forward_label = NodePath("PortForward")  | 
 | 46 | +find_public_ip_button = NodePath("FindPublicIP")  | 
 | 47 | +layout_mode = 1  | 
 | 48 | +anchors_preset = 8  | 
 | 49 | +anchor_left = 0.5  | 
 | 50 | +anchor_top = 0.5  | 
 | 51 | +anchor_right = 0.5  | 
 | 52 | +anchor_bottom = 0.5  | 
 | 53 | +offset_left = -110.0  | 
 | 54 | +offset_top = -73.0  | 
 | 55 | +offset_right = 110.0  | 
 | 56 | +offset_bottom = 73.0  | 
 | 57 | +grow_horizontal = 2  | 
 | 58 | +grow_vertical = 2  | 
 | 59 | +size_flags_horizontal = 2  | 
 | 60 | +size_flags_vertical = 2  | 
 | 61 | + | 
 | 62 | +[node name="AddressLabel" type="Label" parent="LobbyPanel"]  | 
 | 63 | +layout_mode = 0  | 
 | 64 | +offset_left = 10.0  | 
 | 65 | +offset_top = 6.0  | 
 | 66 | +offset_right = 77.0  | 
 | 67 | +offset_bottom = 29.0  | 
 | 68 | +size_flags_horizontal = 2  | 
 | 69 | +size_flags_vertical = 0  | 
 | 70 | +text = "Address:"  | 
 | 71 | + | 
 | 72 | +[node name="Address" type="LineEdit" parent="LobbyPanel"]  | 
 | 73 | +layout_mode = 0  | 
 | 74 | +offset_left = 10.0  | 
 | 75 | +offset_top = 37.0  | 
 | 76 | +offset_right = 210.0  | 
 | 77 | +offset_bottom = 68.0  | 
 | 78 | +size_flags_horizontal = 2  | 
 | 79 | +size_flags_vertical = 2  | 
 | 80 | +text = "127.0.0.1"  | 
 | 81 | + | 
 | 82 | +[node name="HostButton" type="Button" parent="LobbyPanel"]  | 
 | 83 | +layout_mode = 0  | 
 | 84 | +offset_left = 10.0  | 
 | 85 | +offset_top = 76.0  | 
 | 86 | +offset_right = 90.0  | 
 | 87 | +offset_bottom = 107.0  | 
 | 88 | +size_flags_horizontal = 2  | 
 | 89 | +size_flags_vertical = 2  | 
 | 90 | +text = "Host"  | 
 | 91 | + | 
 | 92 | +[node name="JoinButton" type="Button" parent="LobbyPanel"]  | 
 | 93 | +layout_mode = 0  | 
 | 94 | +offset_left = 130.0  | 
 | 95 | +offset_top = 76.0  | 
 | 96 | +offset_right = 210.0  | 
 | 97 | +offset_bottom = 107.0  | 
 | 98 | +size_flags_horizontal = 2  | 
 | 99 | +size_flags_vertical = 2  | 
 | 100 | +text = "Join"  | 
 | 101 | + | 
 | 102 | +[node name="StatusOk" type="Label" parent="LobbyPanel"]  | 
 | 103 | +layout_mode = 0  | 
 | 104 | +offset_left = 10.0  | 
 | 105 | +offset_top = 114.0  | 
 | 106 | +offset_right = 210.0  | 
 | 107 | +offset_bottom = 137.0  | 
 | 108 | +size_flags_horizontal = 2  | 
 | 109 | +size_flags_vertical = 0  | 
 | 110 | +horizontal_alignment = 1  | 
 | 111 | + | 
 | 112 | +[node name="StatusFail" type="Label" parent="LobbyPanel"]  | 
 | 113 | +modulate = Color(1, 0.427451, 0.345098, 1)  | 
 | 114 | +layout_mode = 0  | 
 | 115 | +offset_left = 10.0  | 
 | 116 | +offset_top = 114.0  | 
 | 117 | +offset_right = 210.0  | 
 | 118 | +offset_bottom = 137.0  | 
 | 119 | +size_flags_horizontal = 2  | 
 | 120 | +size_flags_vertical = 0  | 
 | 121 | +horizontal_alignment = 1  | 
 | 122 | + | 
 | 123 | +[node name="PortForward" type="Label" parent="LobbyPanel"]  | 
 | 124 | +visible = false  | 
 | 125 | +layout_mode = 1  | 
 | 126 | +anchors_preset = 8  | 
 | 127 | +anchor_left = 0.5  | 
 | 128 | +anchor_top = 0.5  | 
 | 129 | +anchor_right = 0.5  | 
 | 130 | +anchor_bottom = 0.5  | 
 | 131 | +offset_left = -278.0  | 
 | 132 | +offset_top = 91.0  | 
 | 133 | +offset_right = 25.0  | 
 | 134 | +offset_bottom = 166.0  | 
 | 135 | +grow_horizontal = 2  | 
 | 136 | +grow_vertical = 2  | 
 | 137 | +text = "If you want non-LAN clients to connect,  | 
 | 138 | +make sure the port 8910 in UDP  | 
 | 139 | +is forwarded on your router."  | 
 | 140 | + | 
 | 141 | +[node name="FindPublicIP" type="LinkButton" parent="LobbyPanel"]  | 
 | 142 | +visible = false  | 
 | 143 | +layout_mode = 1  | 
 | 144 | +anchors_preset = 8  | 
 | 145 | +anchor_left = 0.5  | 
 | 146 | +anchor_top = 0.5  | 
 | 147 | +anchor_right = 0.5  | 
 | 148 | +anchor_bottom = 0.5  | 
 | 149 | +offset_left = 61.0  | 
 | 150 | +offset_top = 118.0  | 
 | 151 | +offset_right = 269.0  | 
 | 152 | +offset_bottom = 141.0  | 
 | 153 | +grow_horizontal = 2  | 
 | 154 | +grow_vertical = 2  | 
 | 155 | +text = "Find your public IP address"  | 
 | 156 | + | 
 | 157 | +[connection signal="pressed" from="LobbyPanel/HostButton" to="LobbyPanel" method="_on_host_pressed"]  | 
 | 158 | +[connection signal="pressed" from="LobbyPanel/JoinButton" to="LobbyPanel" method="_on_join_pressed"]  | 
 | 159 | +[connection signal="pressed" from="LobbyPanel/FindPublicIP" to="LobbyPanel" method="_on_find_public_ip_pressed"]  | 
0 commit comments