Wikia

WoWWiki

Watchlist Recent changes

API GetNumMacroIcons

Main Menue



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.

Pages on WoWWiki

94,214pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,641photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki