Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
m (Changed the variable name "local" to "localVar" as "local"'s an invalid name.)
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
  +
{{wowapi}}
<center>'''GetMacroInfo''' - ''Documentation by [[User:Nepenthes|Nepenthes]]''</center>
 
 
Return information about a macro.
  +
name, iconTexture, body, isLocal = GetMacroInfo("name" or macroSlot);
   
Return information for a macro.
 
 
Returns "name", iconTextureID, "body", local = GetMacroInfo(MacroID)
 
 
== Arguments ==
 
== Arguments ==
 
;name : String - Name of the macro to query.
:(MacroID)
 
  +
OR
 
  +
;macroSlot: Number - Macro slot ID to query. Slots 1 through 36 are general macros; 37 through 54 are per-character macros.
:;MacroID: Numeric - The ID number of the action to query.
 
   
 
== Returns ==
 
== Returns ==
 
;name : String - The name of the macro.
 
  +
;iconTexture : String - Path to the icon texture currently displayed for the macro.
:;name, iconTextureID, body, local
 
  +
;body : String - Macro contents.
 
  +
;isLocal : Flag - unknown.
;''name''
 
:The name of the macro
 
 
;''iconTextureID''
 
:The texture of the macro
 
 
;''body''
 
:The contents of the macro
 
 
;''local''
 
:unknown; apears to be the numeric value 1.
 
== Example ==
 
local name, texture, macrobody, localVar = GetMacroInfo(1)
 
 
 
 
----
 
__NOTOC__
 
{{Template:WoW API}}
 

Revision as of 23:10, 21 May 2010

Return information about a macro.

name, iconTexture, body, isLocal = GetMacroInfo("name" or macroSlot);

Arguments

name
String - Name of the macro to query.

OR

macroSlot
Number - Macro slot ID to query. Slots 1 through 36 are general macros; 37 through 54 are per-character macros.

Returns

name
String - The name of the macro.
iconTexture
String - Path to the icon texture currently displayed for the macro.
body
String - Macro contents.
isLocal
Flag - unknown.