1 extends DialogicAnimation
3 func animate() -> void:
5 var modulation_property := get_modulation_property()
6 var end_modulation_alpha := 1.0
9 end_modulation_alpha = 0.0
12 var original_modulation: Color = node.get(modulation_property)
13 original_modulation.a = 0.0
14 node.set(modulation_property, original_modulation)
16 var tween := (node.create_tween() as Tween)
18 tween.set_ease(Tween.EASE_IN)
20 tween.set_ease(Tween.EASE_OUT)
21 tween.set_trans(Tween.TRANS_SINE)
22 tween.tween_property(node, modulation_property + ":a", end_modulation_alpha, time)
28 func _get_named_variations() -> Dictionary:
30 "fade in": {"reversed": false, "type": AnimationType.IN},
31 "fade out": {"reversed": true, "type": AnimationType.OUT},
32 "fade cross": {"type": AnimationType.CROSSFADE},