Refactor HUD and level names for internationalization; update tooltip texts and descriptions
This commit is contained in:
@@ -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:
|
||||
|
@@ -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):
|
||||
|
Reference in New Issue
Block a user