This repository has been archived on 2025-09-12. You can view files and clone it, but cannot push or open issues or pull requests.
ld47/game/NarrativePopup.gd

8 lines
202 B
GDScript

class_name NarrativePopup
extends Popup
func display(msg: String, duration: float) -> void:
$Panel/RichTextLabel.bbcode_text = msg
show()
yield(get_tree().create_timer(duration), "timeout")
hide()