ape-ame/Notification.gd

10 lines
226 B
GDScript3
Raw Normal View History

2024-04-16 20:29:45 -04:00
extends Label
func notify(notification_text):
text = notification_text
modulate = Color.WHITE
var tween = get_tree().create_tween()
tween.tween_property(self, "modulate", Color.TRANSPARENT, 1).set_ease(Tween.EASE_OUT)