WoW API < GetMacroIconInfo

Return information for a macro icon.

iconTexture = GetMacroIconInfo(iconIndex)

Parameters[edit | edit source]

Arguments[edit | edit source]

Integer - The Index of the macro icon (from 1 to GetNumMacroIcons()).

Returns[edit | edit source]

String - The path of the texture without extention

Example[edit | edit source]

local numIcons = GetNumMacroIcons();
local iconTexture = GetMacroIconInfo(1);

Result[edit | edit source]

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

Notes[edit | edit source]

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

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