WoW:XML/Script: Difference between revisions

896 bytes added ,  28 November 2020
m
(Created page with "{{uixmltype}} Script is way to add handler code to a UI element. Script is base type that is not used directly, but added to <Scripts> using on...")
 
Line 14: Line 14:


== Attributes ==
== Attributes ==
* inherit ([[XML types#SCRIPTINHERITTYPE|SCRIPTINHERITTYPE]]) (optional) - order to run this script relative to any inherited scripts. Default is 'none'.
* function {{attrtype|string}} (optional) - global name of function to call, in lieu of inline text.
* function {{attrtype|string}} (optional) - global name of function to call, in lieu of inline text.
* method {{attrtype|string}} (optional) - this frame Lua object or 'mixin' name of function to call, in lieu of inline text.
* inherit ([[XML types#SCRIPTINHERITTYPE|SCRIPTINHERITTYPE]]) (optional) - order to run this script relative to any inherited scripts for this event. Default is 'none'.
* intrinsicOrder ([[XML types#SCRIPTINTRINSICORDERTYPE|SCRIPTINTRINSICORDERTYPE]]) (optional) - order to run this script relative to any implementation scripts for this event. Default is 'none'. Used only in an intrinsic definition.
== Xsd ==
<xs:complexType name="ScriptType">
  <xs:simpleContent>
    <xs:extension base="xs:string">
      <xs:attribute name="function" type="xs:string"/>
      <xs:attribute name="method" type="xs:string"/><!-- new after 7.1 -->
      <xs:attribute name="inherit" type="SCRIPTINHERITTYPE" use="optional" default="none"/>
      <xs:attribute name="intrinsicOrder" type="SCRIPTINTRINSICORDERTYPE" use="optional" default="none"/><!-- new after 7.1 -->
    </xs:extension>
  </xs:simpleContent>
</xs:complexType>


== Summary ==
== Summary ==