API GetMacroIconInfo
Talk0
98,518pages on
this wiki
this wiki
Return information for a macro icon.
iconTexture = GetMacroIconInfo(iconIndex)
Parameters
Edit
Arguments
Edit
- iconIndex
- Integer - The Index of the macro icon (from 1 to GetNumMacroIcons()).
Returns
Edit
- iconTexture
- String - The path of the texture without extention
Example
Edit
local numIcons = GetNumMacroIcons(); local iconTexture = GetMacroIconInfo(1); DEFAULT_CHAT_FRAME:AddMessage(iconTexture);
Result
Edit
Displays Interface\Icons\INV_Misc_QuestionMark in the default chat frame.
Notes
Edit
You need to call GetNumMacroIcons() at least once before calling GetMacroIconInfo(), or the function will only return empty strings.