2023-01-15 15:08:42 +00:00
|
|
|
class_name NotificationLabel
|
2019-11-13 13:45:55 +00:00
|
|
|
extends Label
|
|
|
|
|
2020-05-01 17:47:10 +00:00
|
|
|
|
2019-11-13 13:45:55 +00:00
|
|
|
func _ready() -> void:
|
2022-08-09 00:57:14 +00:00
|
|
|
var tw := create_tween().set_parallel().set_trans(Tween.TRANS_LINEAR).set_ease(Tween.EASE_OUT)
|
|
|
|
tw.tween_property(self, "rect_position", Vector2(rect_position.x, rect_position.y - 100), 1)
|
|
|
|
tw.tween_property(self, "modulate", Color(modulate.r, modulate.g, modulate.b, 0), 1)
|
2023-01-15 15:08:42 +00:00
|
|
|
tw.connect("finished", self, "_on_tween_finished")
|
2019-11-13 13:45:55 +00:00
|
|
|
|
2020-05-01 17:47:10 +00:00
|
|
|
|
2023-01-15 15:08:42 +00:00
|
|
|
func _on_tween_finished() -> void:
|
2019-11-13 13:45:55 +00:00
|
|
|
queue_free()
|