AnimationData
Description
Table used by panel animation methods, primarily Panel:AnimationThinkInternal, and returned by Panel:NewAnimation.
Parameters
Ease [number]
The ease in/out level of the animation.
Default:
-1
OnEnd [function]
Think [function]
The think
function called every frame that will animate the panel object. This varies based on the animation. You can create a custom function for this if you aren't using the stock panel methods. The arguments passed to it are:
Pos [Vector]
The target position, or target translation of the panel object. Used by Panel:MoveTo and Panel:MoveBy respectively.
StartPos [Vector]
The position of the panel object when the animation started. Used by Panel:MoveTo and Panel:MoveBy.
SizeX [boolean]
Whether to resize the panel horizontally or not. Only used by Panel:SizeTo.
SizeY [boolean]
Whether to resize the panel vertically or not. Only used by Panel:SizeTo.
Size [Vector]
The target size of the panel object. Only used by Panel:SizeTo.
Default:
(0, 0, 0)
StartSize [Vector]
The size of the panel object when the animation started. Only used by Panel:SizeTo.
Color [table]
The target colour of the panel object. Only used by Panel:ColorTo.
StartColor [table]
The colour of the panel object when the animation started. Only used by Panel:ColorTo.
Alpha [number]
The target alpha (0-255) of the panel object. Only used by Panel:AlphaTo.
StartAlpha [number]
The alpha (0-255) of the panel object when the animation started. Only used by Panel:AlphaTo.
Speed [number]
The speed to use for transitions when using linear interpolation (Lerp) animations. Only used by Panel:LerpPositions.
UseGravity [boolean]
Whether or not to use easing to make the panel 'jump' at its target, slowing as it approaches. Only used by Panel:LerpPositions.