![]() |
Wowpedia is no longer updated, go away. |
<Scripts> (child of <Frame>, <AnimationGroup> or <Animation>) contains widget script handlers such as <OnLoad> or <OnUpdate>.
<Scripts> <OnLoad function="" method="" inherit="" intrisictOrder="" autoEnableInput="" /> <OnUpdate> -- Lua code <OnUpdate> <!-- See widget script handlers for the full list --> </Scripts>
Child elements[]
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? )