Host settings 👍
This commit is contained in:
parent
162dbc13e8
commit
54b99eb20f
13 changed files with 203 additions and 148 deletions
|
|
@ -1,9 +1,7 @@
|
|||
[gd_scene load_steps=5 format=3 uid="uid://cbtp4rvg66ba1"]
|
||||
[gd_scene load_steps=3 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"]
|
||||
[ext_resource type="PackedScene" uid="uid://dswn8a8anj2hu" path="res://gui/host_menu/host_menu.tscn" id="2_85nol"]
|
||||
|
||||
[node name="MainMenu" type="CenterContainer"]
|
||||
anchors_preset = 15
|
||||
|
|
@ -109,102 +107,13 @@ visible = false
|
|||
layout_mode = 2
|
||||
text = "Join Spectators"
|
||||
|
||||
[node name="HostMenu" type="VBoxContainer" parent="Lobby/HBoxContainer"]
|
||||
[node name="HostConainer" type="ScrollContainer" parent="Lobby/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
horizontal_scroll_mode = 0
|
||||
|
||||
[node name="HostMenu" parent="Lobby/HBoxContainer/HostConainer" instance=ExtResource("2_85nol")]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
script = ExtResource("2_ekxnf")
|
||||
|
||||
[node name="RoundTime" type="HBoxContainer" parent="Lobby/HBoxContainer/HostMenu"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Lobby/HBoxContainer/HostMenu/RoundTime"]
|
||||
layout_mode = 2
|
||||
text = "Время раунда"
|
||||
|
||||
[node name="RoundTimeBox" type="SpinBox" parent="Lobby/HBoxContainer/HostMenu/RoundTime"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
min_value = 1.0
|
||||
step = 0.01
|
||||
value = 1.0
|
||||
allow_greater = true
|
||||
|
||||
[node name="BombTime" type="HBoxContainer" parent="Lobby/HBoxContainer/HostMenu"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Lobby/HBoxContainer/HostMenu/BombTime"]
|
||||
layout_mode = 2
|
||||
text = "Отсчёт бомбы"
|
||||
|
||||
[node name="BombTimeBox" type="SpinBox" parent="Lobby/HBoxContainer/HostMenu/BombTime"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
min_value = 1.0
|
||||
step = 0.01
|
||||
value = 1.0
|
||||
allow_greater = true
|
||||
|
||||
[node name="BuyTime" type="HBoxContainer" parent="Lobby/HBoxContainer/HostMenu"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Lobby/HBoxContainer/HostMenu/BuyTime"]
|
||||
layout_mode = 2
|
||||
text = "Время закупок"
|
||||
|
||||
[node name="BuyTimeBox" type="SpinBox" parent="Lobby/HBoxContainer/HostMenu/BuyTime"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
min_value = 1.0
|
||||
step = 0.01
|
||||
value = 1.0
|
||||
allow_greater = true
|
||||
|
||||
[node name="RoundAmount" type="HBoxContainer" parent="Lobby/HBoxContainer/HostMenu"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Lobby/HBoxContainer/HostMenu/RoundAmount"]
|
||||
layout_mode = 2
|
||||
text = "Раундов для победы"
|
||||
|
||||
[node name="RoundBox" type="SpinBox" parent="Lobby/HBoxContainer/HostMenu/RoundAmount"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
min_value = 2.0
|
||||
max_value = 20.0
|
||||
value = 2.0
|
||||
rounded = true
|
||||
allow_greater = true
|
||||
|
||||
[node name="TeamSwitchAmount" type="HBoxContainer" parent="Lobby/HBoxContainer/HostMenu"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="Lobby/HBoxContainer/HostMenu/TeamSwitchAmount"]
|
||||
layout_mode = 2
|
||||
text = "Раунд смены сторон"
|
||||
|
||||
[node name="TeamSwitchBox" type="SpinBox" parent="Lobby/HBoxContainer/HostMenu/TeamSwitchAmount"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
min_value = 1.0
|
||||
max_value = 20.0
|
||||
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="LineEdit" parent="Lobby/HBoxContainer/HostMenu"]
|
||||
unique_name_in_owner = true
|
||||
layout_mode = 2
|
||||
editable = false
|
||||
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"]
|
||||
|
|
@ -213,9 +122,3 @@ script = ExtResource("3_qy2xc")
|
|||
[connection signal="pressed" from="Lobby/HBoxContainer/ClientMenu/Buttons/JoinAttackButton" to="." method="_on_join_attack_button_pressed"]
|
||||
[connection signal="pressed" from="Lobby/HBoxContainer/ClientMenu/Buttons/JoinDefenceButton" to="." method="_on_join_defence_button_pressed"]
|
||||
[connection signal="pressed" from="Lobby/HBoxContainer/ClientMenu/Buttons/JoinSpectatorsButton" to="." method="_on_join_spectators_button_pressed"]
|
||||
[connection signal="value_changed" from="Lobby/HBoxContainer/HostMenu/RoundTime/RoundTimeBox" to="Lobby/HBoxContainer/HostMenu" method="_on_round_time_box_value_changed"]
|
||||
[connection signal="value_changed" from="Lobby/HBoxContainer/HostMenu/BombTime/BombTimeBox" to="Lobby/HBoxContainer/HostMenu" method="_on_bomb_time_box_value_changed"]
|
||||
[connection signal="value_changed" from="Lobby/HBoxContainer/HostMenu/BuyTime/BuyTimeBox" to="Lobby/HBoxContainer/HostMenu" method="_on_buy_time_box_value_changed"]
|
||||
[connection signal="value_changed" from="Lobby/HBoxContainer/HostMenu/RoundAmount/RoundBox" to="Lobby/HBoxContainer/HostMenu" method="_on_round_box_value_changed"]
|
||||
[connection signal="value_changed" from="Lobby/HBoxContainer/HostMenu/TeamSwitchAmount/TeamSwitchBox" to="Lobby/HBoxContainer/HostMenu" method="_on_team_switch_box_value_changed"]
|
||||
[connection signal="update_ip" from="Lobby/HBoxContainer/HostMenu/ForwardPortButton" to="Lobby/HBoxContainer/HostMenu/PublicIP" method="on_update_ip"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue