feat: Update success screen DescLabel

This commit is contained in:
Dendy 2026-03-05 20:47:07 +01:00
parent 16d9069907
commit 602cd4410e
1 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,7 @@ func _on_area_area_entered(area: Area3D) -> void:
if area.name == "StationArea":
$FinishControl.visible = true
$HUD.visible = false
var scoreLbl = $FinishControl/ScoreLabel
for letter in SCORE_RANK:
var rank = SCORE_RANK[letter]
@ -91,6 +92,11 @@ func _on_area_area_entered(area: Area3D) -> void:
$Shop.available_money += rank["money"]
scoreLbl.text = letter
scoreLbl.add_theme_color_override("font_color", rank["color"])
$FinishControl/DescLabel.text = """
Diners guanyat: %s pessetes
Diners total: %d pessetes
""" % [rank["money"], $Shop.available_money]
break
$TimeLimit.stop()