GetItemIcon

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Townlong-Yak BAD.png  ProfIcons engineering.png  BTNTemp.png C_Item.GetItemIcon TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.pngCata-Logo-Small.pngWrath-Logo-Small.pngWoW Icon update.png + 8.0.1 / 1.13.2
GitHub Octocat.png  Townlong-Yak BAD.png  ProfIcons engineering.png  BTNTemp.png C_Item.GetItemIconByID TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.pngCata-Logo-Small.pngWrath-Logo-Small.pngWoW Icon update.png + 8.0.1 / 1.13.2
Wowprogramming.png  BTNTemp.png GetItemIcon Wrath-Logo-Small.png + 2.4.0 / 1.13.2

Returns the icon texture for an item.

icon = GetItemIcon(itemID) 

Arguments

itemID
number - The ID of the item to query e.g. 23405 for  [Farstrider's Tunic].

Returns

icon
number : FileID - Icon texture used by the item.

Details

  • Unlike GetItemInfo(), this function does not require the item to be readily available from the item cache.