WoW:API GetItemIcon: Difference between revisions
Jump to navigation
Jump to search
(New page: {{wowapi}}__NOTOC__ Return the icon texture for the item. itemIcon = GetItemIcon(itemID or "itemString" or "itemName" or "itemLink") == Parameters == === Arguments === :(itemId or "[[it...) |
No edit summary |
||
Line 1: | Line 1: | ||
{{wowapi}}__NOTOC__ | {{wowapi}}__NOTOC__ | ||
Return the icon texture for the item. | Return the icon texture for the item. | ||
itemIcon = GetItemIcon(itemID | itemIcon = GetItemIcon(itemID) | ||
== Parameters == | == Parameters == | ||
=== Arguments === | === Arguments === | ||
:( | :(itemID) | ||
:; | :;itemID : Integer - The numeric ID of the item. ie. 12345 | ||
=== Returns === | === Returns === | ||
Line 20: | Line 15: | ||
== Example == | == Example == | ||
itemIcon = GetItemIcon(6948) | itemIcon = GetItemIcon(6948) | ||
print("itemIcon :", itemIcon) | print("itemIcon :", itemIcon) | ||
====Result==== | ====Result==== | ||
: prints Hearthstone icon | : prints Hearthstone icon - "Interface\\Icons\\INV_Misc_Rune_01". | ||
== Notes == | |||
* As of patch 4.0.1, this function requires an itemID, it will not work with item names or links. |
Revision as of 00:36, 14 October 2010
← WoW API < GetItemIcon
Return the icon texture for the item.
itemIcon = GetItemIcon(itemID)
Parameters
Arguments
- (itemID)
- itemID
- Integer - The numeric ID of the item. ie. 12345
Returns
- "itemIcon"
- itemIcon
- String - The name and path of the icon texture of the item.
Example
itemIcon = GetItemIcon(6948) print("itemIcon :", itemIcon)
Result
- prints Hearthstone icon - "Interface\\Icons\\INV_Misc_Rune_01".
Notes
- As of patch 4.0.1, this function requires an itemID, it will not work with item names or links.