Refactor HUD and level names for internationalization; update tooltip texts and descriptions

This commit is contained in:
2025-05-25 15:16:55 +02:00
parent 25676db130
commit 5da55f3718
19 changed files with 39 additions and 27 deletions

View File

@@ -33,14 +33,14 @@ func set_coins_label() -> void:
return
#todo: set internationalized text
coins_label.text = tr("COINS") + ": " + str(game_manager.get_coins())
coins_label.text = tr("COINS_LABEL") + ":" + str(game_manager.get_coins())
func set_lives_label() -> void:
if not game_manager:
return
lives_label.text = tr("LIVES") + ": " + str(game_manager.get_lives())
lives_label.text = tr("LIVES_LABEL") + ":" + str(game_manager.get_lives())
func set_health_progressbar() -> void:

View File

@@ -44,7 +44,7 @@ func _input(event: InputEvent) -> void:
func get_button_text(skill: SkillData) -> String:
return skill.name + " " + str(skill.cost)
return tr(skill.name) + " " + str(skill.cost)
func create_upgrade_button(skill: SkillData):