WoW API < GetNumMacroIcons

Returns the number of possible macro icons.

numIcons = GetNumMacroIcons();

Parameters[edit | edit source]

Returns[edit | edit source]

Integer - Number of available macro icons.

Example[edit | edit source]

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

Result[edit | edit source]

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

Notes[edit | edit source]

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

Community content is available under CC-BY-SA unless otherwise noted.