xiandie/scene/entity/ux/ppt_helper_config.gd

29 lines
1.3 KiB
GDScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class_name PPTHelperConfig
extends Resource
## 需要控制的 CanvasItem 节点路径
@export_node_path("CanvasItem") var canvas_item: NodePath
# 转场 ease in 参数
@export_group("EaseIn", "ease_in_")
## 动画的缓动方式 (进入, 退出, 或两者兼有)
@export_enum("in", "out", "inout") var ease_in_type := "inout"
## 动画的过渡曲线类型
@export_enum("linear", "sine", "cubic", "quart", "quint", "expo", "elastic", "bounce", "spring")
var ease_in_trans_type := "cubic"
## 动画的持续时间(秒) 0 意味着直接出现(无需 ease
@export var ease_in_duration := 0.0
# 转场 ease out 参数
@export_group("EaseOut", "ease_out_")
## 是否自动转到下一个页面(在 ease in 完成后触发 ease out 并转场)
@export var ease_out_to_next := true
# ease_out_to_next 为 true 时, 等待 ease_out_wait_time 秒再执行
@export var ease_out_wait_time := 0.5
## 动画的缓动方式 (进入, 退出, 或两者兼有)
@export_enum("in", "out", "inout") var ease_out_type := "inout"
## 动画的过渡曲线类型
@export_enum("linear", "sine", "cubic", "quart", "quint", "expo", "elastic", "bounce", "spring")
var ease_out_trans_type := "cubic"
## 动画的持续时间(秒) 0 意味着直接消失(无需 ease
@export var ease_out_duration := 0.5