about summary refs log tree commit diff stats
path: root/Archipelago
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-05-06 22:04:55 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-05-06 22:04:55 -0400
commitde38e45560bc27d14a7440490e37f04b6f778c41 (patch)
tree2b5c9ce1aeed794831e3a42b59ccd8359aea4940 /Archipelago
parentaeeebb177e25d3cc79bc599de9df19c340b0aeb8 (diff)
downloadlingo-archipelago-de38e45560bc27d14a7440490e37f04b6f778c41.tar.gz
lingo-archipelago-de38e45560bc27d14a7440490e37f04b6f778c41.tar.bz2
lingo-archipelago-de38e45560bc27d14a7440490e37f04b6f778c41.zip
Expiring messages now fade out
Diffstat (limited to 'Archipelago')
-rw-r--r--Archipelago/messages.gd4
1 files changed, 3 insertions, 1 deletions
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):
50 yield(get_tree().create_timer(timeout), "timeout") 50 yield(get_tree().create_timer(timeout), "timeout")
51 51
52 var to_remove = _ordered_labels.pop_front() 52 var to_remove = _ordered_labels.pop_front()
53 to_remove.queue_free() 53 var to_tween = get_tree().create_tween().bind_node(to_remove)
54 to_tween.tween_property(to_remove, "modulate:a", 0.0, 0.5)
55 to_tween.tween_callback(to_remove, "queue_free")
54 56
55 if !_message_queue.empty(): 57 if !_message_queue.empty():
56 var next_msg = _message_queue.pop_front() 58 var next_msg = _message_queue.pop_front()