16 lines
631 B
GDScript
16 lines
631 B
GDScript
extends Label
|
|
|
|
func _ready() -> void:
|
|
z_index = 30
|
|
add_theme_color_override("font_color", Color(1.0, 0.78, 0.28, 1.0))
|
|
add_theme_color_override("font_shadow_color", Color(0.05, 0.08, 0.12, 0.95))
|
|
add_theme_constant_override("shadow_offset_x", 2)
|
|
add_theme_constant_override("shadow_offset_y", 2)
|
|
add_theme_font_size_override("font_size", 22)
|
|
var tween := create_tween()
|
|
tween.set_parallel(true)
|
|
tween.tween_property(self, "position:y", position.y - 48.0, 0.8).set_ease(Tween.EASE_OUT)
|
|
tween.tween_property(self, "modulate:a", 0.0, 0.8).set_ease(Tween.EASE_IN)
|
|
tween.set_parallel(false)
|
|
tween.tween_callback(queue_free)
|