1
Fork 0
mirror of https://github.com/Steffo99/cinnos.git synced 2024-11-24 09:04:21 +00:00
cinnos/TextBox.gd
2023-11-25 16:28:03 +01:00

12 lines
202 B
GDScript

extends MarginContainer
class_name TextBox
func display(s: String, t: float):
show()
$Panel/HBoxContainer/MarginContainer/RichTextLabel.text = s
$Timer.start(t)
func _on_timer_timeout():
hide()