Add dialogic
This commit is contained in:
1 parent
89d4d3a29c
commit
2c47b309ae
603 files changed
+34501
No files matched your search
@@ -0,0 +1,5 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var opacity_frames = [
|
||||
{ from = 0, to = 1, easing_points = [0.42, 0, 0.58, 1]},
|
||||
]
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,14 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var opacity_frames = [
|
||||
{ from = 0, to = 1, easing_points = [0.42, 0, 0.58, 1] },
|
||||
]
|
||||
|
||||
var size = DialogicAnimaPropertiesHelper.get_size(data.node)
|
||||
|
||||
var position_frames = [
|
||||
{ percentage = 0, from = size.y/16, easing_points = [0.42, 0, 0.58, 1] },
|
||||
{ percentage = 100, to = -size.y/16, easing_points = [0.42, 0, 0.58, 1] },
|
||||
]
|
||||
|
||||
anima_tween.add_relative_frames(data, "y", position_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,14 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var opacity_frames = [
|
||||
{ from = 0, to = 1 },
|
||||
]
|
||||
|
||||
var size = DialogicAnimaPropertiesHelper.get_size(data.node)
|
||||
|
||||
var position_frames = [
|
||||
{ percentage = 0, from = 2000 },
|
||||
{ percentage = 100, to = -2000 },
|
||||
]
|
||||
|
||||
anima_tween.add_relative_frames(data, "y", position_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,6 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var opacity_frames = [
|
||||
{ from = 1, to = 0, easing_points = [0.42, 0, 0.58, 1]},
|
||||
]
|
||||
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,13 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var opacity_frames = [
|
||||
{ from = 1, to = 0, easing_points = [0.42, 0, 0.58, 1] },
|
||||
]
|
||||
|
||||
var size = DialogicAnimaPropertiesHelper.get_size(data.node)
|
||||
|
||||
var position_frames = [
|
||||
{ from = 0, to = size.y/16, easing_points = [0.42, 0, 0.58, 1]},
|
||||
]
|
||||
|
||||
anima_tween.add_relative_frames(data, "y", position_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,12 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var opacity_frames = [
|
||||
{ from = 1, to = 0 },
|
||||
]
|
||||
|
||||
var position_frames = [
|
||||
{ percentage = 0, from = 0},
|
||||
{ percentage = 100, to = 2000 },
|
||||
]
|
||||
|
||||
anima_tween.add_relative_frames(data, "y", position_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,25 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var y_frames = [
|
||||
{ percentage = 0, to = -1200 },
|
||||
{ percentage = 80, to = +1200 },
|
||||
{ percentage = 100, to = 0 },
|
||||
]
|
||||
|
||||
var scale = DialogicAnimaPropertiesHelper.get_scale(data.node)
|
||||
var scale_frames = [
|
||||
{ percentage = 0, from = scale * Vector2(0.7, 0.7) },
|
||||
{ percentage = 80, to = scale * Vector2(0.7, 0.7) },
|
||||
{ percentage = 100, to = scale * Vector2(1, 1) },
|
||||
]
|
||||
|
||||
var opacity_frames = [
|
||||
{ percentage = 0, from = 0.7 },
|
||||
{ percentage = 80, to = 0.7 },
|
||||
{ percentage = 100, to = 1 },
|
||||
]
|
||||
|
||||
DialogicAnimaPropertiesHelper.set_2D_pivot(data.node, DialogicAnimaPropertiesHelper.PIVOT.CENTER)
|
||||
|
||||
anima_tween.add_relative_frames(data, "y", y_frames)
|
||||
anima_tween.add_frames(data, "scale", scale_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,25 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var x_frames = [
|
||||
{ percentage = 0, to = -2000 },
|
||||
{ percentage = 80, to = +2000 },
|
||||
{ percentage = 100, to = 0 },
|
||||
]
|
||||
|
||||
var scale = DialogicAnimaPropertiesHelper.get_scale(data.node)
|
||||
var scale_frames = [
|
||||
{ percentage = 0, from = scale * Vector2(0.7, 0.7) },
|
||||
{ percentage = 80, to = scale * Vector2(0.7, 0.7) },
|
||||
{ percentage = 100, to = scale * Vector2(1, 1) },
|
||||
]
|
||||
|
||||
var opacity_frames = [
|
||||
{ percentage = 0, from = 0.7 },
|
||||
{ percentage = 80, to = 0.7 },
|
||||
{ percentage = 100, to = 1 },
|
||||
]
|
||||
|
||||
DialogicAnimaPropertiesHelper.set_2D_pivot(data.node, DialogicAnimaPropertiesHelper.PIVOT.CENTER)
|
||||
|
||||
anima_tween.add_relative_frames(data, "x", x_frames)
|
||||
anima_tween.add_frames(data, "scale", scale_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,25 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var x_frames = [
|
||||
{ percentage = 0, to = 2000 },
|
||||
{ percentage = 80, to = -2000 },
|
||||
{ percentage = 100, to = 0 },
|
||||
]
|
||||
|
||||
var scale = DialogicAnimaPropertiesHelper.get_scale(data.node)
|
||||
var scale_frames = [
|
||||
{ percentage = 0, from = scale * Vector2(0.7, 0.7) },
|
||||
{ percentage = 80, to = scale * Vector2(0.7, 0.7) },
|
||||
{ percentage = 100, to = scale * Vector2(1, 1) },
|
||||
]
|
||||
|
||||
var opacity_frames = [
|
||||
{ percentage = 0, from = 0.7 },
|
||||
{ percentage = 80, to = 0.7 },
|
||||
{ percentage = 100, to = 1 },
|
||||
]
|
||||
|
||||
DialogicAnimaPropertiesHelper.set_2D_pivot(data.node, DialogicAnimaPropertiesHelper.PIVOT.CENTER)
|
||||
|
||||
anima_tween.add_relative_frames(data, "x", x_frames)
|
||||
anima_tween.add_frames(data, "scale", scale_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,25 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var y_frames = [
|
||||
{ percentage = 0, to = 1200 },
|
||||
{ percentage = 80, to = -1200 },
|
||||
{ percentage = 100, to = 0 },
|
||||
]
|
||||
|
||||
var scale = DialogicAnimaPropertiesHelper.get_scale(data.node)
|
||||
var scale_frames = [
|
||||
{ percentage = 0, from = scale * Vector2(0.7, 0.7) },
|
||||
{ percentage = 80, to = scale * Vector2(0.7, 0.7) },
|
||||
{ percentage = 100, to = scale * Vector2(1, 1) },
|
||||
]
|
||||
|
||||
var opacity_frames = [
|
||||
{ percentage = 0, from = 0.7 },
|
||||
{ percentage = 80, to = 0.7 },
|
||||
{ percentage = 100, to = 1 },
|
||||
]
|
||||
|
||||
DialogicAnimaPropertiesHelper.set_2D_pivot(data.node, DialogicAnimaPropertiesHelper.PIVOT.CENTER)
|
||||
|
||||
anima_tween.add_relative_frames(data, "y", y_frames)
|
||||
anima_tween.add_frames(data, "scale", scale_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,25 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var y_frames = [
|
||||
{ percentage = 0, to = 0 },
|
||||
{ percentage = 20, to = 0 },
|
||||
{ percentage = 100, to = -700 },
|
||||
]
|
||||
|
||||
var scale = DialogicAnimaPropertiesHelper.get_scale(data.node)
|
||||
var scale_frames = [
|
||||
{ percentage = 0, from = scale * Vector2(1, 1) },
|
||||
{ percentage = 20, to = scale * Vector2(0.7, 0.7) },
|
||||
{ percentage = 100, to = scale * Vector2(0.7, 0.7) },
|
||||
]
|
||||
|
||||
var opacity_frames = [
|
||||
{ percentage = 0, from = 1 },
|
||||
{ percentage = 20, to = 0.7 },
|
||||
{ percentage = 100, to = 0.7 },
|
||||
]
|
||||
|
||||
DialogicAnimaPropertiesHelper.set_2D_pivot(data.node, DialogicAnimaPropertiesHelper.PIVOT.CENTER)
|
||||
|
||||
anima_tween.add_relative_frames(data, "y", y_frames)
|
||||
anima_tween.add_frames(data, "scale", scale_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,25 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var x_frames = [
|
||||
{ percentage = 0, to = 0 },
|
||||
{ percentage = 20, to = 0 },
|
||||
{ percentage = 100, to = -2000 },
|
||||
]
|
||||
|
||||
var scale = DialogicAnimaPropertiesHelper.get_scale(data.node)
|
||||
var scale_frames = [
|
||||
{ percentage = 0, from = scale * Vector2(1, 1) },
|
||||
{ percentage = 20, to = scale * Vector2(0.7, 0.7) },
|
||||
{ percentage = 100, to = scale * Vector2(0.7, 0.7) },
|
||||
]
|
||||
|
||||
var opacity_frames = [
|
||||
{ percentage = 0, from = 1 },
|
||||
{ percentage = 20, to = 0.7 },
|
||||
{ percentage = 100, to = 0.7 },
|
||||
]
|
||||
|
||||
DialogicAnimaPropertiesHelper.set_2D_pivot(data.node, DialogicAnimaPropertiesHelper.PIVOT.CENTER)
|
||||
|
||||
anima_tween.add_relative_frames(data, "x", x_frames)
|
||||
anima_tween.add_frames(data, "scale", scale_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,25 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var x_frames = [
|
||||
{ percentage = 0, to = 0 },
|
||||
{ percentage = 20, to = 0 },
|
||||
{ percentage = 100, to = 2000 },
|
||||
]
|
||||
|
||||
var scale = DialogicAnimaPropertiesHelper.get_scale(data.node)
|
||||
var scale_frames = [
|
||||
{ percentage = 0, from = scale * Vector2(1, 1) },
|
||||
{ percentage = 20, to = scale * Vector2(0.7, 0.7) },
|
||||
{ percentage = 100, to = scale * Vector2(0.7, 0.7) },
|
||||
]
|
||||
|
||||
var opacity_frames = [
|
||||
{ percentage = 0, from = 1 },
|
||||
{ percentage = 20, to = 0.7 },
|
||||
{ percentage = 100, to = 0.7 },
|
||||
]
|
||||
|
||||
DialogicAnimaPropertiesHelper.set_2D_pivot(data.node, DialogicAnimaPropertiesHelper.PIVOT.CENTER)
|
||||
|
||||
anima_tween.add_relative_frames(data, "x", x_frames)
|
||||
anima_tween.add_frames(data, "scale", scale_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,25 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var y_frames = [
|
||||
{ percentage = 0, to = 0 },
|
||||
{ percentage = 20, to = 0 },
|
||||
{ percentage = 100, to = 700 },
|
||||
]
|
||||
|
||||
var scale = DialogicAnimaPropertiesHelper.get_scale(data.node)
|
||||
var scale_frames = [
|
||||
{ percentage = 0, from = scale * Vector2(1, 1) },
|
||||
{ percentage = 20, to = scale * Vector2(0.7, 0.7) },
|
||||
{ percentage = 100, to = scale * Vector2(0.7, 0.7) },
|
||||
]
|
||||
|
||||
var opacity_frames = [
|
||||
{ percentage = 0, from = 1 },
|
||||
{ percentage = 20, to = 0.7 },
|
||||
{ percentage = 100, to = 0.7 },
|
||||
]
|
||||
|
||||
DialogicAnimaPropertiesHelper.set_2D_pivot(data.node, DialogicAnimaPropertiesHelper.PIVOT.CENTER)
|
||||
|
||||
anima_tween.add_relative_frames(data, "y", y_frames)
|
||||
anima_tween.add_frames(data, "scale", scale_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,22 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var scale = DialogicAnimaPropertiesHelper.get_scale(data.node)
|
||||
var scale_frames = [
|
||||
{ percentage = 0, from = scale * Vector2(1, 1) },
|
||||
{ percentage = 20, to = scale * Vector2(0.9, 0.9) },
|
||||
{ percentage = 50, to = scale * Vector2(1.1, 1.1) },
|
||||
{ percentage = 55, to = scale * Vector2(1.1, 1.1) },
|
||||
{ percentage = 100, to = scale * Vector2(0.3, 0.3) },
|
||||
]
|
||||
|
||||
var opacity_frames = [
|
||||
{ percentage = 0, from = 1 },
|
||||
{ percentage = 20, to = 1 },
|
||||
{ percentage = 50, to = 1 },
|
||||
{ percentage = 55, to = 1 },
|
||||
{ percentage = 100, to = 0 },
|
||||
]
|
||||
|
||||
DialogicAnimaPropertiesHelper.set_2D_pivot(data.node, DialogicAnimaPropertiesHelper.PIVOT.CENTER)
|
||||
|
||||
anima_tween.add_frames(data, "scale", scale_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,21 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var scale = DialogicAnimaPropertiesHelper.get_scale(data.node)
|
||||
var scale_frames = [
|
||||
{ percentage = 0, from = scale * Vector2(0.3, 0.3), easing_points = [0.215, 0.61, 0.355, 1] },
|
||||
{ percentage = 20, to = scale * Vector2(1, 1), easing_points = [0.215, 0.61, 0.355, 1] },
|
||||
{ percentage = 40, to = scale * Vector2(0.9, 0.9), easing_points = [0.215, 0.61, 0.355, 1] },
|
||||
{ percentage = 60, to = scale * Vector2(1.03, 1.03), easing_points = [0.215, 0.61, 0.355, 1] },
|
||||
{ percentage = 80, to = scale * Vector2(0.97, 0.97), easing_points = [0.215, 0.61, 0.355, 1] },
|
||||
{ percentage = 100, to = scale * Vector2(1, 1) },
|
||||
]
|
||||
|
||||
var opacity_frames = [
|
||||
{ percentage = 0, from = 0 },
|
||||
{ percentage = 60, to = 1 },
|
||||
{ percentage = 100, to = 1 },
|
||||
]
|
||||
|
||||
DialogicAnimaPropertiesHelper.set_2D_pivot(data.node, DialogicAnimaPropertiesHelper.PIVOT.CENTER)
|
||||
|
||||
anima_tween.add_frames(data, "scale", scale_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,5 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var opacity_frames = [
|
||||
{ from = 1, to = 1 },
|
||||
]
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,5 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var opacity_frames = [
|
||||
{ from = 0, to = 0 },
|
||||
]
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,19 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var x_frames = [
|
||||
{ percentage = 0, to = -2000 },
|
||||
{ percentage = 80, to = +2000 },
|
||||
{ percentage = 100, to = 0 },
|
||||
]
|
||||
|
||||
|
||||
var opacity_frames = [
|
||||
{ percentage = 0, from = 0.7 },
|
||||
{ percentage = 80, to = 0.7 },
|
||||
{ percentage = 100, to = 1 },
|
||||
]
|
||||
|
||||
DialogicAnimaPropertiesHelper.set_2D_pivot(data.node, DialogicAnimaPropertiesHelper.PIVOT.CENTER)
|
||||
|
||||
anima_tween.add_relative_frames(data, "x", x_frames)
|
||||
#anima_tween.add_frames(data, "scale", scale_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,25 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var x_frames = [
|
||||
{ percentage = 0, to = 2000 },
|
||||
{ percentage = 80, to = -2000 },
|
||||
{ percentage = 100, to = 0 },
|
||||
]
|
||||
|
||||
var scale = DialogicAnimaPropertiesHelper.get_scale(data.node)
|
||||
var scale_frames = [
|
||||
{ percentage = 0, from = scale * Vector2(0.7, 0.7) },
|
||||
{ percentage = 80, to = scale * Vector2(0.7, 0.7) },
|
||||
{ percentage = 100, to = scale * Vector2(1, 1) },
|
||||
]
|
||||
|
||||
var opacity_frames = [
|
||||
{ percentage = 0, from = 0.7 },
|
||||
{ percentage = 80, to = 0.7 },
|
||||
{ percentage = 100, to = 1 },
|
||||
]
|
||||
|
||||
DialogicAnimaPropertiesHelper.set_2D_pivot(data.node, DialogicAnimaPropertiesHelper.PIVOT.CENTER)
|
||||
|
||||
anima_tween.add_relative_frames(data, "x", x_frames)
|
||||
anima_tween.add_frames(data, "scale", scale_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,17 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var x_frames = [
|
||||
{ percentage = 0, to = 0 },
|
||||
{ percentage = 20, to = 0 },
|
||||
{ percentage = 100, to = -2000 },
|
||||
]
|
||||
|
||||
var opacity_frames = [
|
||||
{ percentage = 0, from = 1 },
|
||||
{ percentage = 20, to = 0.7 },
|
||||
{ percentage = 100, to = 0.7 },
|
||||
]
|
||||
|
||||
DialogicAnimaPropertiesHelper.set_2D_pivot(data.node, DialogicAnimaPropertiesHelper.PIVOT.CENTER)
|
||||
|
||||
anima_tween.add_relative_frames(data, "x", x_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
@@ -0,0 +1,17 @@
|
||||
func generate_animation(anima_tween: Tween, data: Dictionary) -> void:
|
||||
var x_frames = [
|
||||
{ percentage = 0, to = 0 },
|
||||
{ percentage = 20, to = 0 },
|
||||
{ percentage = 100, to = 2000 },
|
||||
]
|
||||
|
||||
var opacity_frames = [
|
||||
{ percentage = 0, from = 1 },
|
||||
{ percentage = 20, to = 0.7 },
|
||||
{ percentage = 100, to = 0.7 },
|
||||
]
|
||||
|
||||
DialogicAnimaPropertiesHelper.set_2D_pivot(data.node, DialogicAnimaPropertiesHelper.PIVOT.CENTER)
|
||||
|
||||
anima_tween.add_relative_frames(data, "x", x_frames)
|
||||
anima_tween.add_frames(data, "opacity", opacity_frames)
|
||||
Reference in new issue
Block a user