Links
|
|
Info
|
Added in 1.0.0
|
|
This no longer exists on any flavor of the game.
|
|
This is no longer a part of the World of Warcraft API.
- Replaced by table-returning GetMacroIcons and GetMacroItemIcons.
- It was removed in patch 4.3.0.
|
Return information for a macro icon.
iconTexture = GetMacroIconInfo(iconIndex)
Arguments
- iconIndex
- Number - The Index of the macro icon (from 1 to GetNumMacroIcons()).
Returns
- iconTexture
- String - The path of the texture without extention
Example
local numIcons = GetNumMacroIcons();
local iconTexture = GetMacroIconInfo(1);
DEFAULT_CHAT_FRAME:AddMessage(iconTexture);
Result
Displays Interface\Icons\INV_Misc_QuestionMark in the default chat frame.
Notes
You need to call GetNumMacroIcons() at least once before calling GetMacroIconInfo(), or the function will only return empty strings.
Patch changes