1
Fork 0
mirror of https://github.com/Steffo99/cinnos.git synced 2024-11-25 01:24:20 +00:00
cinnos/TextBox.gd

13 lines
202 B
GDScript3
Raw Normal View History

2023-11-25 14:15:25 +00:00
extends MarginContainer
2023-11-25 15:28:03 +00:00
class_name TextBox
2023-11-25 14:15:25 +00:00
func display(s: String, t: float):
2023-11-25 15:28:03 +00:00
show()
$Panel/HBoxContainer/MarginContainer/RichTextLabel.text = s
2023-11-25 14:15:25 +00:00
$Timer.start(t)
func _on_timer_timeout():
2023-11-25 15:28:03 +00:00
hide()