XML/AnimationGroup

From Warcraft Wiki
< XML
Jump to navigation Jump to search

<AnimationGroup> (creates an AnimationGroup widget) encloses <Animation> tags.

<AnimationGroup name="" inherits="" virtual="" parentKey="" parentArray="" looping="" setToFinalAlpha="">
	<Animation />
	<Scripts />
</AnimationGroup>


Attributes

name (xs:string?Optional. Could be nil.) - Adds a reference to _G, substituting $parent with a parent's name.
inherits (xs:string?Optional. Could be nil.) - Inherits a comma-separated list of XML virtual templates.
virtual (xs:boolean?Optional. Could be nil.) - Creates an XML virtual template instead of a widget (requires name).
parentKey (xs:string?Optional. Could be nil.) - Adds a reference to the widget's parent.
parentArray ((xs:string?Optional. Could be nil.) - Inserts a reference to an array in the widget's parent.
looping (ui:ANIMLOOPTYPE) - Defaults to false.
setToFinalAlpha (xs:boolean)

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?Optional. Could be nil.) - Name of a function instead of Lua code between the XML tags.
method (xs:string?Optional. Could be nil.) - Name of a widget method instead of Lua code between the XML tags.
inherit (xs:string?Optional. Could be nil.) - Hooks (prepend, append) other scripts inherited through an XML virtual template.
intrinsicOrder (xs:string?Optional. Could be nil.) - Hooks (precall, postcall) other scripts when copied as an intrinsic frame.
autoEnableInput (xs:boolean?Optional. Could be nil.)

<Animation> is an abstract type; there are several specific tags it can be.

Patch changes

References

 
  1. ^ 2019-04-14, UI.xsd, version 3.1.0.9767, near line 820, archived at Townlong-Yak