1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00
Pixelorama/Scripts/NotificationLabel.gd
OverloadedOrama c35a8a6854 Added quit dialog
Works when quitting from the menu, when quitting by pressing the close ("X") button and on Alt-F4.
2019-12-04 19:16:18 +02:00

12 lines
483 B
GDScript

extends Label
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
var tween := $Tween
tween.interpolate_property(self, "rect_position", rect_position, Vector2(rect_position.x, rect_position.y - 100), 1, Tween.TRANS_LINEAR, Tween.EASE_OUT)
tween.interpolate_property(self, "modulate", modulate, Color(modulate.r, modulate.g, modulate.b, 0), 1, Tween.TRANS_LINEAR, Tween.EASE_OUT)
tween.start()
func _on_Timer_timeout() -> void:
queue_free()