Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetNumMacroIcons

Last wiki revision 2020-01-08

Returns the number of possible macro icons. numIcons = GetNumMacroIcons;

  • numIcons : Number - Number of available macro icons.

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

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

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

Source

https://warcraft.wiki.gg/wiki/API_GetNumMacroIcons · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.