Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
desktop:animator [2019/10/21 13:29]
agcyphers [See Also]
desktop:animator [2019/10/23 05:53] (current)
Line 47: Line 47:
 ==== Events ==== ==== Events ====
 ^ Definition ​     ^ Description ​      ^ ^ Definition ​     ^ Description ​      ^
-This class exposes no events.+| AnimationComplete(animOp as GraffitiAnimatorOperation) | Raised when the provided animation operation has fully completed
 +| AnimationProgress(animOp as GraffitiAnimatorOperation,​ timePercent as Double, newValue as Double) | Raised as the animation operation progresses. | 
 +| AnimationStart(animOp as GraffitiAnimatorOperation) | Raised when the provided animation operation has begun. | 
 +| AtKeyframe(keyframe as GraffitiAnimatorKeyframe) | Raised when the animator hits the specified keyframe. |
  
 ==== Methods ==== ==== Methods ====
 ^ Definition ​     ^ Description ​      ^ ^ Definition ​     ^ Description ​      ^
-This class exposes no methods.+| AddAnimation(animOp as GraffitiAnimatorOperation) | Adds an animation operation to the stack
 +| AddKeyframe(NewKeyframe as GraffitiAnimatorKeyframe = Nil) | Adds a keyframe to the stack. | 
 +| Cancel(animOp as GraffitiAnimatorOperation) | Cancels the specified animation operation. | 
 +| Cancel(opName as String, inCurrentFrame as Boolean = True) | ::: | 
 +| NextKeyframe() | Completes all animations in the current keyframe and moves immediately to the next. | 
 +| Operation(index as Integer) as GraffitiAnimatorOperation | Returns the operation object at the specified index. | 
 +| OperationCount(inCurrentKeyframe as Boolean = False) | Returns a count of all operation object. When inCurrentKeyframe is True, only the current keyframe segment of the stack will be searched. | 
 +| Play() | Begin animation stack. | 
 +| Stop() | Immediately complete all animations. |
  
 ==== Properties ==== ==== Properties ====
 ^ Name      ^ Type       ^ Default Value       ^ Description ​      ^ ^ Name      ^ Type       ^ Default Value       ^ Description ​      ^
-This class exposes no properties.+| PreserveTimes | Boolean | True | If True, animation operations that counter currently added operations will preserve the original lengthA keyframe separation cancels this effect. | 
 +| State | GraffitiAnimator.States | Idle | The current running status of the animator. |
  
 ==== Examples ==== ==== Examples ====