12 lines
387 B
GDScript
12 lines
387 B
GDScript
class_name VictoryPanel
|
|
extends PanelContainer
|
|
|
|
@onready var body: RichTextLabel = $Body
|
|
|
|
func present(player_name: String, floor: int, level: int) -> void:
|
|
visible = true
|
|
body.text = "%s a vaincu le donjon.\n\nNiveau atteint : %d Étage final : %d\n\nLa foule acclame votre victoire." % [player_name, level, floor]
|
|
|
|
func get_display_text() -> String:
|
|
return body.get_parsed_text()
|