m
replaced "Template:WoW API" with "wowapi"
No edit summary |
m (replaced "Template:WoW API" with "wowapi") |
||
| Line 1: | Line 1: | ||
{{wowapi}} | |||
Creates a new macro command/button. | Creates a new macro command/button. | ||
CreateMacro(name, icon, body, local, perCharacter) | CreateMacro(name, icon, body, local, perCharacter) | ||
| Line 30: | Line 32: | ||
* It is possible to create macros with duplicate names. You should enumerate the current macros using [[API GetNumMacros|GetNumMacros()]] and [[API GetMacroIconInfo|GetMacroIconInfo(macroId)]] to ensure that your new macro name doesn't already exist. | * It is possible to create macros with duplicate names. You should enumerate the current macros using [[API GetNumMacros|GetNumMacros()]] and [[API GetMacroIconInfo|GetMacroIconInfo(macroId)]] to ensure that your new macro name doesn't already exist. | ||