WoW:API GetNumMacroItemIcons: Difference between revisions
Jump to navigation
Jump to search
(New page, mostly cloned from GetNumMacroIcons()) |
m (Move page script moved page API GetNumMacroItemIcons to API GetNumMacroItemIcons without leaving a redirect) |
(No difference)
|
Latest revision as of 04:46, 15 August 2023
← WoW API < GetNumMacroItemIcons
Returns the number of possible macro item icons. These icons differ from the normal macro icons in that they are icons for various items in the game -- potions, armor, etc., whereas normal macro icons are icons from actions and abilities such as spells or attacks.
numIcons = GetNumMacroItemIcons()
Parameters[edit]
Returns[edit]
- numIcons
- Integer - Number of available macro item icons
Example[edit]
local numIcons = GetNumMacroIcons() for i=1,numIcons do DEFAULT_CHAT_FRAME:AddMessage(string.format("Icon %d: %s",i,GetMacroItemIconInfo(i))); end
Result[edit]
Outputs the IDs and texture names for all available macro item icons to the default chat frame.