Add rudimentary dialogue system.

This commit is contained in:
yagigreg committed 2026-10-18 00:53:22 -05:00
1 parent 8f2083bd9f
commit c56a32555e
6 files changed
+68 -4

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
class_name Dialogue
extends Control
func show_text(text: String) -> Dialogue:
visible = true
$Panel/Text.text = "[font_size=28]%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