WoW:XML/Script: Difference between revisions

178 bytes added ,  22 August 2022
no edit summary
No edit summary
Line 9: Line 9:
== Elements ==
== Elements ==
:none
:none
== Payload ==
* (optional) - Lua script as plain text.


== Attributes ==
== Attributes ==
Line 19: Line 16:
* intrinsicOrder ([[XML types#SCRIPTINTRINSICORDERTYPE|SCRIPTINTRINSICORDERTYPE]]) (optional) - order to run this script relative to any implementation scripts for this event. Used only in an intrinsic definition. Default is 'none'.  
* intrinsicOrder ([[XML types#SCRIPTINTRINSICORDERTYPE|SCRIPTINTRINSICORDERTYPE]]) (optional) - order to run this script relative to any implementation scripts for this event. Used only in an intrinsic definition. Default is 'none'.  
* autoEnableInput {{attrtype|boolean}} (optional) - Unknown. Is set 'false' on a few mouse events for ScrollingMessageFrame and TextStatusBar and seems to have something to do with not activating text box under certain circumstances. Default is 'true'.
* autoEnableInput {{attrtype|boolean}} (optional) - Unknown. Is set 'false' on a few mouse events for ScrollingMessageFrame and TextStatusBar and seems to have something to do with not activating text box under certain circumstances. Default is 'true'.
== Payload ==
* (optional) - Lua script as plain text.
=== Lua parameters ===
* self - the container table. For a frame is the scripts Lua Frame table itself
* ... - the remaining Lua args list including any event arguments


== Xsd ==
== Xsd ==
Line 47: Line 51:
       <[[XML/Scripts|Scripts]]>
       <[[XML/Scripts|Scripts]]>
         <[[XML/Script|OnMouseUp]]>
         <[[XML/Script|OnMouseUp]]>
          print(self:GetName(),"clicked")
            print(self:GetName(), "clicked", ...)
         </OnMouseUp>
         </OnMouseUp>
       </Scripts>
       </Scripts>