[gd_scene load_steps=4 format=3 uid="uid://dswn8a8anj2hu"] [ext_resource type="Script" uid="uid://dh64rv15w8ecl" path="res://gui/host_menu/host_menu.gd" id="1_83e8q"] [ext_resource type="Script" uid="uid://r1uwav8lrw6c" path="res://multiplayer/port_forward_button.gd" id="2_lgwxd"] [ext_resource type="Script" uid="uid://dq2pv2wy8uojd" path="res://multiplayer/ip_display.gd" id="3_f5ibf"] [node name="HostMenu" type="VBoxContainer"] script = ExtResource("1_83e8q") [node name="MapsButton" type="MenuButton" parent="."] unique_name_in_owner = true layout_mode = 2 text = "Выбор уровня" [node name="Time" type="FoldableContainer" parent="."] layout_mode = 2 folded = true title = "Время раунда" [node name="VBoxContainer" type="VBoxContainer" parent="Time"] visible = false layout_mode = 2 [node name="RoundTime" type="HBoxContainer" parent="Time/VBoxContainer"] layout_mode = 2 [node name="Label" type="Label" parent="Time/VBoxContainer/RoundTime"] layout_mode = 2 text = "Время раунда" [node name="RoundTimeBox" type="SpinBox" parent="Time/VBoxContainer/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="Time/VBoxContainer"] layout_mode = 2 [node name="Label" type="Label" parent="Time/VBoxContainer/BombTime"] layout_mode = 2 text = "Отсчёт бомбы" [node name="BombTimeBox" type="SpinBox" parent="Time/VBoxContainer/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="Time/VBoxContainer"] layout_mode = 2 [node name="Label" type="Label" parent="Time/VBoxContainer/BuyTime"] layout_mode = 2 text = "Время закупок" [node name="BuyTimeBox" type="SpinBox" parent="Time/VBoxContainer/BuyTime"] unique_name_in_owner = true layout_mode = 2 min_value = 1.0 step = 0.01 value = 1.0 allow_greater = true [node name="Round" type="FoldableContainer" parent="."] layout_mode = 2 folded = true title = "Раунд" [node name="VBoxContainer" type="VBoxContainer" parent="Round"] visible = false layout_mode = 2 [node name="RoundAmount" type="HBoxContainer" parent="Round/VBoxContainer"] layout_mode = 2 [node name="Label" type="Label" parent="Round/VBoxContainer/RoundAmount"] layout_mode = 2 text = "Раундов для победы" [node name="RoundBox" type="SpinBox" parent="Round/VBoxContainer/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="Round/VBoxContainer"] layout_mode = 2 [node name="Label" type="Label" parent="Round/VBoxContainer/TeamSwitchAmount"] layout_mode = 2 text = "Раунд смены сторон" [node name="TeamSwitchBox" type="SpinBox" parent="Round/VBoxContainer/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="Gameplay" type="FoldableContainer" parent="."] layout_mode = 2 folded = true title = "Геймплей" [node name="AllowMultipleAbilityButton" type="CheckButton" parent="Gameplay"] unique_name_in_owner = true visible = false custom_minimum_size = Vector2(200, 0) layout_mode = 2 text = "Неограниченная закупка абилок" autowrap_mode = 2 [node name="PortForward" type="FoldableContainer" parent="."] layout_mode = 2 folded = true title = "Проброс портов" [node name="PortForwardContainer" type="VBoxContainer" parent="PortForward"] visible = false layout_mode = 2 [node name="ForwardPortButton" type="Button" parent="PortForward/PortForwardContainer"] layout_mode = 2 text = "Попробовать пробросить порты" script = ExtResource("2_lgwxd") [node name="Label" type="Label" parent="PortForward/PortForwardContainer"] layout_mode = 2 text = "Статус публичного IP:" [node name="PublicIP" type="LineEdit" parent="PortForward/PortForwardContainer"] unique_name_in_owner = true layout_mode = 2 editable = false script = ExtResource("3_f5ibf") [node name="Teams" type="FoldableContainer" parent="."] layout_mode = 2 title = "Команды" [node name="VBoxContainer" type="VBoxContainer" parent="Teams"] layout_mode = 2 [node name="AllowTeamSwitch" type="CheckButton" parent="Teams/VBoxContainer"] unique_name_in_owner = true layout_mode = 2 text = "Разрешить смену команд" autowrap_mode = 2 [node name="Shuffle" type="Button" parent="Teams/VBoxContainer"] layout_mode = 2 text = "Перемешать" [connection signal="value_changed" from="Time/VBoxContainer/RoundTime/RoundTimeBox" to="." method="_on_round_time_box_value_changed"] [connection signal="value_changed" from="Time/VBoxContainer/BombTime/BombTimeBox" to="." method="_on_bomb_time_box_value_changed"] [connection signal="value_changed" from="Time/VBoxContainer/BuyTime/BuyTimeBox" to="." method="_on_buy_time_box_value_changed"] [connection signal="value_changed" from="Round/VBoxContainer/RoundAmount/RoundBox" to="." method="_on_round_box_value_changed"] [connection signal="value_changed" from="Round/VBoxContainer/TeamSwitchAmount/TeamSwitchBox" to="." method="_on_team_switch_box_value_changed"] [connection signal="toggled" from="Gameplay/AllowMultipleAbilityButton" to="." method="_on_allow_multiple_ability_button_toggled"] [connection signal="update_ip" from="PortForward/PortForwardContainer/ForwardPortButton" to="PortForward/PortForwardContainer/PublicIP" method="on_update_ip"] [connection signal="toggled" from="Teams/VBoxContainer/AllowTeamSwitch" to="." method="_on_allow_team_switch_toggled"] [connection signal="pressed" from="Teams/VBoxContainer/Shuffle" to="." method="_on_shuffle_pressed"]