AnimationData
Description
Table used by panel animation methods, primarily Panel:AnimationThinkInternal, and returned by Panel:NewAnimation.
Members
function Think
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.
Vector Pos
The target position, or target translation of the panel object. Used by Panel:MoveTo and Panel:MoveBy respectively.
Vector StartPos
The position of the panel object when the animation started. Used by Panel:MoveTo and Panel:MoveBy.
table StartColor
The colour of the panel object when the animation started. Only used by Panel:ColorTo.
number StartAlpha
The alpha (0-255) of the panel object when the animation started. Only used by Panel:AlphaTo.
number Speed
The speed to use for transitions when using linear interpolation (Lerp) animations. Only used by Panel:LerpPositions.
boolean UseGravity
Whether or not to use easing to make the panel 'jump' at its target, slowing as it approaches. Only used by Panel:LerpPositions.