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

@ -1,8 +1,9 @@
[gd_scene load_steps=4 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="PackedScene" uid="uid://dswn8a8anj2hu" path="res://gui/host_menu/host_menu.tscn" id="2_85nol"]
[ext_resource type="Script" uid="uid://fhfot05mnhua" path="res://gui/main_menu/version_label.gd" id="3_qy2xc"]
[ext_resource type="Script" uid="uid://dx0tfstuwspll" path="res://gui/main_menu/language_button.gd" id="4_6wy0j"]
[node name="MainMenu" type="CenterContainer"]
anchors_preset = 15
@ -14,6 +15,7 @@ script = ExtResource("1_l6cm7")
metadata/_edit_lock_ = true
[node name="MainMenu" type="PanelContainer" parent="."]
visible = false
custom_minimum_size = Vector2(256, 0)
layout_mode = 2
@ -23,7 +25,7 @@ layout_mode = 2
[node name="NicknameEdit" type="LineEdit" parent="MainMenu/VBoxContainer"]
unique_name_in_owner = true
layout_mode = 2
placeholder_text = "Nickname"
placeholder_text = "nick"
max_length = 16
[node name="HBoxContainer" type="HBoxContainer" parent="MainMenu/VBoxContainer"]
@ -32,7 +34,7 @@ layout_mode = 2
[node name="HostButton" type="Button" parent="MainMenu/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
text = "HOST"
text = "host"
[node name="VBoxContainer" type="VBoxContainer" parent="MainMenu/VBoxContainer/HBoxContainer"]
layout_mode = 2
@ -40,7 +42,7 @@ size_flags_horizontal = 3
[node name="ConnectButton" type="Button" parent="MainMenu/VBoxContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
text = "CONNECT"
text = "connect"
[node name="IpEdit" type="LineEdit" parent="MainMenu/VBoxContainer/HBoxContainer/VBoxContainer"]
unique_name_in_owner = true
@ -49,10 +51,9 @@ placeholder_text = "ip"
[node name="ExitButton" type="Button" parent="MainMenu/VBoxContainer"]
layout_mode = 2
text = "Выйти из игры"
text = "exit"
[node name="Lobby" type="PanelContainer" parent="."]
visible = false
custom_minimum_size = Vector2(256, 256)
layout_mode = 2
@ -74,7 +75,7 @@ size_flags_horizontal = 3
[node name="TeamName" type="Label" parent="Lobby/HBoxContainer/ClientMenu/Players/AttackTeam"]
layout_mode = 2
text = "Attack"
text = "attack"
horizontal_alignment = 1
[node name="DefenceTeam" type="VBoxContainer" parent="Lobby/HBoxContainer/ClientMenu/Players"]
@ -84,7 +85,7 @@ size_flags_horizontal = 3
[node name="TeamName" type="Label" parent="Lobby/HBoxContainer/ClientMenu/Players/DefenceTeam"]
layout_mode = 2
text = "Defence"
text = "defence"
horizontal_alignment = 1
[node name="SpectatorsTeam" type="VBoxContainer" parent="Lobby/HBoxContainer/ClientMenu/Players"]
@ -94,7 +95,7 @@ size_flags_horizontal = 3
[node name="TeamName" type="Label" parent="Lobby/HBoxContainer/ClientMenu/Players/SpectatorsTeam"]
layout_mode = 2
text = "Spectators"
text = "spectators"
horizontal_alignment = 1
[node name="Buttons" type="HBoxContainer" parent="Lobby/HBoxContainer/ClientMenu"]
@ -104,28 +105,23 @@ alignment = 1
[node name="LeaveButton" type="Button" parent="Lobby/HBoxContainer/ClientMenu/Buttons"]
unique_name_in_owner = true
layout_mode = 2
text = "Leave"
[node name="StartButton" type="Button" parent="Lobby/HBoxContainer/ClientMenu/Buttons"]
unique_name_in_owner = true
layout_mode = 2
text = "Start"
text = "leave"
[node name="JoinAttackButton" type="Button" parent="Lobby/HBoxContainer/ClientMenu/Buttons"]
unique_name_in_owner = true
layout_mode = 2
text = "Join Attack"
text = "join_attack"
[node name="JoinDefenceButton" type="Button" parent="Lobby/HBoxContainer/ClientMenu/Buttons"]
unique_name_in_owner = true
layout_mode = 2
text = "Join Defence"
text = "join_defence"
[node name="JoinSpectatorsButton" type="Button" parent="Lobby/HBoxContainer/ClientMenu/Buttons"]
unique_name_in_owner = true
visible = false
layout_mode = 2
text = "Join Spectators"
text = "join_spectators"
[node name="HostConainer" type="ScrollContainer" parent="Lobby/HBoxContainer"]
layout_mode = 2
@ -135,10 +131,10 @@ horizontal_scroll_mode = 0
unique_name_in_owner = true
layout_mode = 2
[node name="LabelContainer" type="Control" parent="."]
[node name="Independent" type="Control" parent="."]
layout_mode = 2
[node name="Label" type="RichTextLabel" parent="LabelContainer"]
[node name="Version" type="RichTextLabel" parent="Independent"]
top_level = true
layout_mode = 1
anchors_preset = 3
@ -158,13 +154,24 @@ horizontal_alignment = 2
vertical_alignment = 2
script = ExtResource("3_qy2xc")
[node name="LanguageButton" type="MenuButton" parent="Independent"]
top_level = true
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -8.0
offset_right = 8.0
grow_vertical = 0
text = "language"
script = ExtResource("4_6wy0j")
[connection signal="text_changed" from="MainMenu/VBoxContainer/NicknameEdit" to="." method="_on_nickname_edit_text_changed"]
[connection signal="text_submitted" from="MainMenu/VBoxContainer/NicknameEdit" to="." method="_on_nickname_edit_text_submitted"]
[connection signal="pressed" from="MainMenu/VBoxContainer/HBoxContainer/HostButton" to="." method="_on_host_button_pressed"]
[connection signal="pressed" from="MainMenu/VBoxContainer/HBoxContainer/VBoxContainer/ConnectButton" to="." method="_on_connect_button_pressed"]
[connection signal="pressed" from="MainMenu/VBoxContainer/ExitButton" to="." method="_on_exit_button_pressed"]
[connection signal="pressed" from="Lobby/HBoxContainer/ClientMenu/Buttons/LeaveButton" to="." method="_on_leave_button_pressed"]
[connection signal="pressed" from="Lobby/HBoxContainer/ClientMenu/Buttons/StartButton" to="." method="_on_start_button_pressed"]
[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"]