关于FMX的Animation Triggers有点不懂

ooolinux 2019-11-03 03:54:41
Trigger conditions are stored in two properties, Trigger and TriggerInverse. As their names suggest, the former will simply Start the animation as defined, while the latter will set the animation's Inverse flag first. Because of the way animations run in reverse, and the way animations will immediately "stop at the finish" when the condition no longer holds, instead of a single animation with opposite trigger conditions, sometimes two separate animations defined as opposites are required, each with one of the opposite triggers.

红色两句怎么理解呢?
因为这个原因一般不用TriggerInverse,而是使用两个独立的animations吗?
...全文
229 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
ooolinux 2019-11-05
  • 打赏
  • 举报
回复
引用 5 楼 早打大打打核战争 的回复:
文档中写了,不论正向还是反向,一旦条件不成立,都停在StopValue的状态


我有空试一下看。
  • 打赏
  • 举报
回复
文档中写了,不论正向还是反向,一旦条件不成立,都停在StopValue的状态
ooolinux 2019-11-04
  • 打赏
  • 举报
回复
引用 3 楼 早打大打打核战争 的回复:
StartValue和StopValue的方向是不一样的


逆转就是相当于从stop到start?
  • 打赏
  • 举报
回复
StartValue和StopValue的方向是不一样的
ooolinux 2019-11-04
  • 打赏
  • 举报
回复
引用 1 楼 早打大打打核战争 的回复:
因为i反向动画只是行进方向逆转,并不交换StartValue和StopValue


行进方向逆转就是达到跟交换同样的效果亚。
  • 打赏
  • 举报
回复
因为i反向动画只是行进方向逆转,并不交换StartValue和StopValue

828

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧