The API is no longer being updated here until further notice. |
<Animation> abstracts tags and attributes common to Animations that animate a <LayoutFrame>.
<Animation name="" inherits="" virtual="" target="" targetKey="" parentKey="" childKey="" startDelay="" endDelay="" duration="" order="" smoothing=""> <Scripts /> </Animation>
Attributes[]
- name (xs:string) - See <LayoutFrame>.
- inherits (xs:string) - See <LayoutFrame>.
- virtual (xs:boolean) - See <LayoutFrame>.
- target (xs:string? )
- targetKey (xs:string? )
- parentKey (xs:string? )
- childKey (xs:string? )
- startDelay (xs:float? ) - Delay in seconds until the animation begins.
- endDelay (xs:float? ) - Delay in seconds after the animation finishes.
- duration (xs:float) - Duration of the animation in seconds.
- order (ui:AnimOrderType) - Whole number between 1 (default) and 100
- smoothing (ui:ANIMSMOOTHTYPE) - NONE (default), IN, OUT, IN_OUT or OUT_IN
Child elements[]
<Scripts> contains widget script handlers such as <OnLoad> or <OnUpdate>.
Each widget script may enclose Lua code between the tags.
- function (xs:string? ) - Name of a function instead of Lua code between the XML tags.
- method (xs:string? ) - Name of a widget method instead of Lua code between the XML tags.
- inherit (xs:string? ) - Hooks (
prepend
,append
) other scripts inherited through an XML virtual template. - intrinsicOrder (xs:string? ) - Hooks (
precall
,postcall
) other scripts when copied as an intrinsic frame. - autoEnableInput (xs:boolean? )
Patch changes[]
- Patch 5.2.0 (2013-03-05): Added target and targetKey attributes, but removed maxFramerate.[1]
- Patch 3.1.0 (2009-04-14): Added.[2]
See also[]
- <Alpha>
- <Rotation>
- <Scale>
- <Translation>
- <Path>
References[]
- ^ 2013-02-26, UI.xsd, version 5.2.0.9767, near line 967, archived at Townlong-Yak
- ^ 2019-04-14, UI.xsd, version 3.1.0.9767, near line 820, archived at Townlong-Yak