FANDOM


WoW API < GetNumMacroIcons

Returns the number of possible macro icons.

numIcons = GetNumMacroIcons();

ParametersEdit

ReturnsEdit

numIcons 
Integer - Number of available macro icons.

ExampleEdit

local numIcons = GetNumMacroIcons()
for i=1,numIcons do
 DEFAULT_CHAT_FRAME:AddMessage(string.format("Icon %d: %s",i,GetMacroIconInfo(i)));
end

ResultEdit

Outputs the IDs and texture names for all available macro icons to the default chat frame.

NotesEdit

This function must be called before using GetMacroIconInfo(index) to retrieve texture information.

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.