From de38e45560bc27d14a7440490e37f04b6f778c41 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 6 May 2023 22:04:55 -0400 Subject: Expiring messages now fade out --- Archipelago/messages.gd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Archipelago/messages.gd b/Archipelago/messages.gd index d5589ef..fbe7564 100644 --- a/Archipelago/messages.gd +++ b/Archipelago/messages.gd @@ -50,7 +50,9 @@ func showMessage(text): yield(get_tree().create_timer(timeout), "timeout") var to_remove = _ordered_labels.pop_front() - to_remove.queue_free() + var to_tween = get_tree().create_tween().bind_node(to_remove) + to_tween.tween_property(to_remove, "modulate:a", 0.0, 0.5) + to_tween.tween_callback(to_remove, "queue_free") if !_message_queue.empty(): var next_msg = _message_queue.pop_front() -- cgit 1.4.1