Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetMacroIconInfo

Last wiki revision 2020-01-08

Return information for a macro icon. iconTexture = GetMacroIconInfo(iconIndex)

  • iconIndex : Number - The Index of the macro icon (from 1 to GetNumMacroIcons).
  • iconTexture : String - The path of the texture without extention

local numIcons = GetNumMacroIcons; local iconTexture = GetMacroIconInfo(1); DEFAULT_CHAT_FRAME:AddMessage(iconTexture);

Displays Interface\Icons\INV_Misc_QuestionMark in the default chat frame.

You need to call GetNumMacroIcons at least once before calling GetMacroIconInfo, or the function will only return empty strings.

Source

https://warcraft.wiki.gg/wiki/API_GetMacroIconInfo · 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.