Navigation menu

WoW:SecureActionButtonTemplate: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 132: Line 132:
<br />
<br />
<b>Attributes:</b>
<b>Attributes:</b>
<table border="1" style="border-collapse: collapse;" cellpadding="4">
{| border="1" style="border-collapse: collapse;" cellpadding="4"
<tr>
|-
<td>macro</td>
| macro || (unknown) Identifier specifying the macro to execute. Does this take a macro name or ID (testing needed)?
<td>(unknown) Identifier specifying the macro to execute. Does this take a macro name or ID (testing needed)?</td>
|-
</tr>
| macrotext || (string) Macro text to be executed.
</table>
|}


Causes this frame to run the macro with ID #1 when left clicked.
Causes this frame to run the macro with ID #1 when left clicked.
Line 143: Line 143:
  frame:SetAttribute("type1", "macro")
  frame:SetAttribute("type1", "macro")
  frame:SetAttribute("macro1", 1)  
  frame:SetAttribute("macro1", 1)  
Causes this frame to run a macro that announces the player's target.
frame:SetAttribute("type1", "macro")
frame:SetAttribute("macrotext", "/party I am targetting %t")
-----
-----


Anonymous user