Wikia

WoWWiki

API GetNumMacroItemIcons

Talk0
101,505pages on
this wiki
Revision as of 20:45, January 15, 2008 by Mundocani (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
WoW API < GetNumMacroItemIcons

Returns the number of possible macro item icons. These icons differ from the normal macro icons in that they are icons for various items in the game -- potions, armor, etc., whereas normal macro icons are icons from actions and abilities such as spells or attacks.

numIcons = GetNumMacroItemIcons()

ParametersEdit

ReturnsEdit

numIcons 
Integer - Number of available macro item icons

ExampleEdit

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

ResultEdit

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

Around Wikia's network

Random Wiki