extends Control @onready var message_label: RichTextLabel = $Base/Margin/Message @onready var animation_player: AnimationPlayer = $AnimationPlayer func _ready() -> void: GameData.notification_requested.connect(_on_notification_requested) func _on_notification_requested(message: String, color: String) -> void: message_label.text = '[color=%s]%s[/color]' % [color, message] animation_player.play("show_notification")