Revision Difference
Structures/AnimationData#516817
<cat>struct</cat>
<structure>⤶
<description>Table used by panel animation methods, primarily <page>Panel:AnimationThinkInternal</page>, and returned by <page>Panel:NewAnimation</page>.</description>⤶
<fields>{{StructureField|number|StartTime|The system time value returned by <page>Global.SysTime</page> when the animation starts/will start.</fields>⤶
⤶
</structure>⤶
⤶
{{StructureField|number|EndTime|The system time value returned by <page>Global.SysTime</page> when the animation ends/will end.}}{{StructureField|number|Ease|The ease in/out level of the animation.|-1}}{{StructureField|function|OnEnd|The callback function that will be called upon completion of the animation. The arguments passed to it are:⤶
{{Structure⤶
|Description=Table used by panel animation methods, primarily <page>Panel:AnimationThinkInternal</page>, and returned by <page>Panel:NewAnimation</page>.⤶
|Fields={{StructureField|number|StartTime|The system time value returned by <page>Global.SysTime</page> when the animation starts/will start.}}{{StructureField|number|EndTime|The system time value returned by <page>Global.SysTime</page> when the animation ends/will end.}}{{StructureField|number|Ease|The ease in/out level of the animation.|-1}}{{StructureField|function|OnEnd|The callback function that will be called upon completion of the animation. The arguments passed to it are:⤶
* <page>table</page> animData - This structure.
* <page>Panel</page> tgtPanel - The panel the animation was run on.
}}{{StructureField|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. The arguments passed to it are:
* <page>table</page> animData - This structure.
* <page>Panel</page> tgtPanel - The panel the animation is being run on.
* <page>number</page> fraction - The progress fraction of the animation, between 0 and 1. The change rate of this number will not be linear if you are easing.
}}{{StructureField|Vector|Pos|The target position, or target translation of the panel object. Used by <page>Panel:MoveTo</page> and <page>Panel:MoveBy</page> respectively.}}{{StructureField|Vector|StartPos|The position of the panel object when the animation started. Used by <page>Panel:MoveTo</page> and <page>Panel:MoveBy</page>.}}{{StructureField|boolean|SizeX|Whether to resize the panel horizontally or not. Only used by <page>Panel:SizeTo</page>.}}{{StructureField|boolean|SizeY|Whether to resize the panel vertically or not. Only used by <page>Panel:SizeTo</page>.}}{{StructureField|Vector|Size|The target size of the panel object. Only used by <page>Panel:SizeTo</page>.|(0, 0, 0)}}{{StructureField|Vector|StartSize|The size of the panel object when the animation started. Only used by <page>Panel:SizeTo</page>.}}{{StructureField|table|Color|The target colour of the panel object. Only used by <page>Panel:ColorTo</page>.}}{{StructureField|table|StartColor|The colour of the panel object when the animation started. Only used by <page>Panel:ColorTo</page>.}}{{StructureField|number|Alpha|The target alpha (0-255) of the panel object. Only used by <page>Panel:AlphaTo</page>.}}{{StructureField|number|StartAlpha|The alpha (0-255) of the panel object when the animation started. Only used by <page>Panel:AlphaTo</page>.}}{{StructureField|number|Speed|The speed to use for transitions when using linear interpolation (Lerp) animations. Only used by <page>Panel:LerpPositions</page>.}}{{StructureField|boolean|UseGravity|Whether or not to use easing to make the panel 'jump' at its target, slowing as it approaches. Only used by <page>Panel:LerpPositions</page>.}}
}}