WoWWiki-Turkey@legacy41587525 (talk | contribs) m (Changed the variable name "local" to "localVar" as "local"'s an invalid name.) |
m (→Arguments) |
||
(7 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{wowapi}} |
||
− | <center>'''GetMacroInfo''' - ''Documentation by [[User:Nepenthes|Nepenthes]]''</center> |
||
⚫ | |||
+ | name, iconTexture, body, isLocal = GetMacroInfo("name" or macroSlot); |
||
⚫ | |||
− | |||
− | Returns "name", iconTextureID, "body", local = GetMacroInfo(MacroID) |
||
== Arguments == |
== Arguments == |
||
⚫ | |||
− | :(MacroID) |
||
+ | OR |
||
− | |||
+ | ;macroSlot: Number - Macro slot ID to query. Slots 1 through 36 are general macros; 37 through 54 are per-character macros. |
||
⚫ | |||
== Returns == |
== Returns == |
||
⚫ | |||
− | |||
+ | ;iconTexture : String - Path to the icon texture currently displayed for the macro. |
||
− | :;name, iconTextureID, body, local |
||
+ | ;body : String - Macro contents. |
||
− | |||
+ | ;isLocal : Flag - unknown. |
||
− | ;''name'' |
||
⚫ | |||
− | |||
− | ;''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
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
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.