Fandom

WoWWiki

API GetMacroIconInfo

104,995pages on
this wiki
Add New Page
Talk0 Share
WoW API < GetMacroIconInfo

Return information for a macro icon.

iconTexture = GetMacroIconInfo(iconIndex)

ParametersEdit

ArgumentsEdit

iconIndex 
Integer - The Index of the macro icon (from 1 to GetNumMacroIcons()).

ReturnsEdit

iconTexture 
String - The path of the texture without extention

Example Edit

local numIcons = GetNumMacroIcons();
local iconTexture = GetMacroIconInfo(1);
DEFAULT_CHAT_FRAME:AddMessage(iconTexture);

ResultEdit

Displays Interface\Icons\INV_Misc_QuestionMark in the default chat frame.

NotesEdit

You need to call GetNumMacroIcons() at least once before calling GetMacroIconInfo(), or the function will only return empty strings.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.