Translations

This commit is contained in:
Rendo 2025-12-17 16:59:21 +05:00
commit b79e87c7ca
30 changed files with 279 additions and 101 deletions

View file

@ -13,7 +13,6 @@ func _ready() -> void:
%InfiniteMoney.set_pressed_no_signal(LobbySettings.infinite_money)
var popup: PopupMenu = %MapsButton.get_popup()
%MapsButton.text = LobbySettings.selected_map
popup.index_pressed.connect(on_maps_index_pressed)
for level in Registry.maps.keys():
levels_by_index.append(level)
@ -52,9 +51,12 @@ func _on_allow_team_switch_toggled(toggled_on: bool) -> void:
LobbySettings.allow_team_switch = toggled_on
func on_maps_index_pressed(index: int):
%MapsButton.text = levels_by_index[index]
LobbySettings.selected_map = levels_by_index[index]
func _on_infinite_money_toggled(toggled_on: bool) -> void:
LobbySettings.infinite_money = toggled_on
func _on_start_button_pressed() -> void:
Lobby.start_game()

View file

@ -7,15 +7,20 @@
[node name="HostMenu" type="VBoxContainer"]
script = ExtResource("1_83e8q")
[node name="StartButton" type="Button" parent="."]
unique_name_in_owner = true
layout_mode = 2
text = "start"
[node name="MapsButton" type="MenuButton" parent="."]
unique_name_in_owner = true
layout_mode = 2
text = "Выбор уровня"
text = "pick_level"
[node name="Time" type="FoldableContainer" parent="."]
layout_mode = 2
folded = true
title = "Время раунда"
title = "round_time"
[node name="VBoxContainer" type="VBoxContainer" parent="Time"]
visible = false
@ -26,7 +31,7 @@ layout_mode = 2
[node name="Label" type="Label" parent="Time/VBoxContainer/RoundTime"]
layout_mode = 2
text = "Время раунда"
text = "round_time"
[node name="RoundTimeBox" type="SpinBox" parent="Time/VBoxContainer/RoundTime"]
unique_name_in_owner = true
@ -41,7 +46,7 @@ layout_mode = 2
[node name="Label" type="Label" parent="Time/VBoxContainer/BombTime"]
layout_mode = 2
text = "Отсчёт бомбы"
text = "bomb_time"
[node name="BombTimeBox" type="SpinBox" parent="Time/VBoxContainer/BombTime"]
unique_name_in_owner = true
@ -56,7 +61,7 @@ layout_mode = 2
[node name="Label" type="Label" parent="Time/VBoxContainer/BuyTime"]
layout_mode = 2
text = "Время закупок"
text = "buy_time"
[node name="BuyTimeBox" type="SpinBox" parent="Time/VBoxContainer/BuyTime"]
unique_name_in_owner = true
@ -69,7 +74,7 @@ allow_greater = true
[node name="Round" type="FoldableContainer" parent="."]
layout_mode = 2
folded = true
title = "Раунд"
title = "round_settings"
[node name="VBoxContainer" type="VBoxContainer" parent="Round"]
visible = false
@ -80,7 +85,7 @@ layout_mode = 2
[node name="Label" type="Label" parent="Round/VBoxContainer/RoundAmount"]
layout_mode = 2
text = "Раундов для победы"
text = "win_rounds"
[node name="RoundBox" type="SpinBox" parent="Round/VBoxContainer/RoundAmount"]
unique_name_in_owner = true
@ -96,7 +101,7 @@ layout_mode = 2
[node name="Label" type="Label" parent="Round/VBoxContainer/TeamSwitchAmount"]
layout_mode = 2
text = "Раунд смены сторон"
text = "half_rounds"
[node name="TeamSwitchBox" type="SpinBox" parent="Round/VBoxContainer/TeamSwitchAmount"]
unique_name_in_owner = true
@ -110,7 +115,7 @@ allow_greater = true
[node name="Gameplay" type="FoldableContainer" parent="."]
layout_mode = 2
folded = true
title = "Геймплей"
title = "gameplay"
[node name="VBoxContainer" type="VBoxContainer" parent="Gameplay"]
visible = false
@ -120,20 +125,20 @@ layout_mode = 2
unique_name_in_owner = true
custom_minimum_size = Vector2(200, 0)
layout_mode = 2
text = "Неограниченная закупка абилок"
text = "allow_multiple_abilities"
autowrap_mode = 2
[node name="InfiniteMoney" type="CheckButton" parent="Gameplay/VBoxContainer"]
unique_name_in_owner = true
custom_minimum_size = Vector2(200, 0)
layout_mode = 2
text = "Бесконечные деньги"
text = "infinite_money"
autowrap_mode = 2
[node name="PortForward" type="FoldableContainer" parent="."]
layout_mode = 2
folded = true
title = "Проброс портов"
title = "port_forwarding"
[node name="PortForwardContainer" type="VBoxContainer" parent="PortForward"]
visible = false
@ -141,12 +146,12 @@ layout_mode = 2
[node name="ForwardPortButton" type="Button" parent="PortForward/PortForwardContainer"]
layout_mode = 2
text = "Попробовать пробросить порты"
text = "try_forward"
script = ExtResource("2_lgwxd")
[node name="Label" type="Label" parent="PortForward/PortForwardContainer"]
layout_mode = 2
text = "Статус публичного IP:"
text = "public_ip_status"
[node name="PublicIP" type="LineEdit" parent="PortForward/PortForwardContainer"]
unique_name_in_owner = true
@ -156,21 +161,24 @@ script = ExtResource("3_f5ibf")
[node name="Teams" type="FoldableContainer" parent="."]
layout_mode = 2
title = "Команды"
folded = true
title = "teams"
[node name="VBoxContainer" type="VBoxContainer" parent="Teams"]
visible = false
layout_mode = 2
[node name="AllowTeamSwitch" type="CheckButton" parent="Teams/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
text = "Разрешить смену команд"
text = "allow_team_switch"
autowrap_mode = 2
[node name="Shuffle" type="Button" parent="Teams/VBoxContainer"]
layout_mode = 2
text = "Перемешать"
text = "shuffle"
[connection signal="pressed" from="StartButton" to="." method="_on_start_button_pressed"]
[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"]