added english pictures and fixed text translations
This commit is contained in:
1 parent
21c73df3eb
commit
563b4800ee
50 files changed
+280
-1787
No files matched your search
@@ -4,15 +4,10 @@ extends Control
|
||||
@onready var players_turning = [$Panel/SubViewportContainer/SubViewport/Players/Player1/MeshInstance3D,
|
||||
$Panel/SubViewportContainer/SubViewport/Players/Player2/MeshInstance3D,
|
||||
$Panel/SubViewportContainer/SubViewport/Players/Player3/MeshInstance3D]
|
||||
@onready var language_button: Button = $language
|
||||
|
||||
const FLAG_DE = preload("res://assets/Images/de.svg")
|
||||
const FLAG_US = preload("res://assets/Images/us.svg")
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
$AnimationPlayer.play("turning")
|
||||
_update_language_button()
|
||||
|
||||
|
||||
func selected_via_click(chosen_player: int) -> void:
|
||||
@@ -38,15 +33,6 @@ func _change_language() -> void:
|
||||
Global.apply_locale("en")
|
||||
else:
|
||||
Global.apply_locale("de")
|
||||
_update_language_button()
|
||||
|
||||
|
||||
func _update_language_button() -> void:
|
||||
# Show the flag of the language you can switch TO
|
||||
language_button.text = ""
|
||||
language_button.icon = FLAG_US if Global.locale == "de" else FLAG_DE
|
||||
language_button.expand_icon = true
|
||||
language_button.custom_minimum_size = Vector2(48, 32)
|
||||
|
||||
|
||||
func _on_start_pressed() -> void:
|
||||
|
||||
Reference in new issue
Block a user