Port forwarding
This commit is contained in:
parent
0501476a6e
commit
fc984d6b45
6 changed files with 56 additions and 1 deletions
|
|
@ -1,7 +1,9 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://cbtp4rvg66ba1"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cbtp4rvg66ba1"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bsyuos803g7qf" path="res://gui/main_menu/main_menu_gui.gd" id="1_l6cm7"]
|
||||
[ext_resource type="Script" uid="uid://dh64rv15w8ecl" path="res://gui/main_menu/host_menu.gd" id="2_ekxnf"]
|
||||
[ext_resource type="Script" uid="uid://r1uwav8lrw6c" path="res://multiplayer/port_forward_button.gd" id="3_6wy0j"]
|
||||
[ext_resource type="Script" uid="uid://dq2pv2wy8uojd" path="res://multiplayer/ip_display.gd" id="3_qy2xc"]
|
||||
|
||||
[node name="MainMenu" type="CenterContainer"]
|
||||
anchors_preset = 15
|
||||
|
|
@ -189,6 +191,20 @@ value = 2.0
|
|||
rounded = true
|
||||
allow_greater = true
|
||||
|
||||
[node name="ForwardPortButton" type="Button" parent="Lobby/HBoxContainer/HostMenu"]
|
||||
layout_mode = 2
|
||||
text = "Попробовать пробросить порты"
|
||||
script = ExtResource("3_6wy0j")
|
||||
|
||||
[node name="Label" type="Label" parent="Lobby/HBoxContainer/HostMenu"]
|
||||
layout_mode = 2
|
||||
text = "Статус публичного IP:"
|
||||
|
||||
[node name="PublicIP" type="Label" parent="Lobby/HBoxContainer/HostMenu"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
script = ExtResource("3_qy2xc")
|
||||
|
||||
[connection signal="pressed" from="MainMenu/VBoxContainer/HostButton" to="." method="_on_host_button_pressed"]
|
||||
[connection signal="pressed" from="MainMenu/VBoxContainer/ConnectButton" to="." method="_on_connect_button_pressed"]
|
||||
[connection signal="pressed" from="Lobby/HBoxContainer/ClientMenu/Buttons/LeaveButton" to="." method="_on_leave_button_pressed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue