ajout du plugin dialogical

This commit is contained in:
2026-01-10 13:00:58 +01:00
parent 8917a02a7b
commit c130c47042
884 changed files with 49385 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
extends DialogicAnimation
func animate() -> void:
var modulation_property := get_modulation_property()
var end_modulation_alpha := 1.0
if is_reversed:
end_modulation_alpha = 0.0
else:
var original_modulation: Color = node.get(modulation_property)
original_modulation.a = 0.0
node.set(modulation_property, original_modulation)
var tween := (node.create_tween() as Tween)
if is_reversed:
tween.set_ease(Tween.EASE_IN)
else:
tween.set_ease(Tween.EASE_OUT)
tween.set_trans(Tween.TRANS_SINE)
tween.tween_property(node, modulation_property + ":a", end_modulation_alpha, time)
await tween.finished
finished_once.emit()
func _get_named_variations() -> Dictionary:
return {
"fade in": {"reversed": false, "type": AnimationType.IN},
"fade out": {"reversed": true, "type": AnimationType.OUT},
"fade cross": {"type": AnimationType.CROSSFADE},
}