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,27 @@
extends DialogicAnimation
func animate() -> void:
var tween := (node.create_tween() as Tween)
tween.set_ease(Tween.EASE_OUT).set_trans(Tween.TRANS_BACK)
var end_position_x: float = base_position.x + node.get_parent().global_position.x
if is_reversed:
end_position_x = - get_node_size().x + get_node_origin().x
tween.set_ease(Tween.EASE_IN)
else:
node.global_position.x = -get_node_size().x + get_node_origin().x
tween.tween_property(node, 'global_position:x', end_position_x, time)
await tween.finished
finished_once.emit()
func _get_named_variations() -> Dictionary:
return {
"slide from left": {"reversed": false, "type": AnimationType.IN},
"slide to left": {"reversed": true, "type": AnimationType.OUT},
}