WoW:API GetMacroInfo: Difference between revisions

m
Using ''local'' as a variable name is bad mojo. Plus, some copy-n-paste errors.
m (Clean up function example so its copy pasteable like other API entries)
m (Using ''local'' as a variable name is bad mojo. Plus, some copy-n-paste errors.)
Line 3: Line 3:
Return information for a macro.
Return information for a macro.


  name, iconTexture, body, local = GetMacroInfo(MacroID)
  name, iconTexture, body, localStore = GetMacroInfo(''name'' or MacroID)
== Arguments ==
== Arguments ==
:(MacroID)
:(''name'' or MacroID)


:;MacroID: Numeric - The ID number of the action to query.
:;''name'' or MacroID: Number/String - The ID number or name of the macro to query.


== Returns ==
== Returns ==


:;name, iconTexture, body, local
:;name, iconTexture, body, localStore


;''name''
;''name''
Line 22: Line 22:
:The contents of the macro
:The contents of the macro


;''local''
;''localStore''
:unknown; apears to be the numeric value 1 or nil.
:unknown; apears to be the numeric value 1 or nil.
== Example ==
== Example ==
Anonymous user