WoW:XML/Script: Difference between revisions

133 bytes added ,  15 August 2023
m
Move page script moved page XML/Script to WoW:XML/Script without leaving a redirect
m (Move page script moved page XML/Script to WoW:XML/Script without leaving a redirect)
 
(4 intermediate revisions by one other user not shown)
Line 23: Line 23:
== Payload ==
== Payload ==
* (optional) - Lua script as plain text called as a Lua function.
* (optional) - Lua script as plain text called as a Lua function.
 
<pre>
<Frame name="Frame1">
<Scripts>
<OnMouseUp>
print(self:GetName(), event, ...) -- payload
</OnMouseUp>
</Scripts>
</Frame>
</pre>
=== Parameters ===
=== Parameters ===
Lua script parameters set by the engine for use by the script.  
Lua script parameters set by the engine for use by the inline script.  
* self - (table) the container table. For a Frame is the scripts Lua frame table itself
* self - (table) the Lua table automatically genmerated for the frame  
* event - (string) the name of the wow event
* event - (string) the name of the wow event
* ... - the remaining Lua args list including any event arguments
* ... - the remaining Lua args list including any event arguments
Anonymous user