Files
JumpRopeOldTech/dialogue.gd
T
Debugman 0586eecdf4
ci/woodpecker/push/woodpecker Pipeline was successful
New text box art
2026-10-18 10:04:50 -05:00

16 lines
343 B
GDScript

class_name Dialogue
extends Control
func show_text(text: String) -> Dialogue:
visible = true
$Panel/Text.text = "[center][font_size=28][color=BLACK]%s" % text
return self
func dismiss_after(secs: float) -> Dialogue:
await get_tree().create_timer(secs).timeout
return dismiss()
func dismiss() -> Dialogue:
visible = false
return self