WoW API type: ITEM QUALITY COLORS

From AddOn Studio
Jump to navigation Jump to search

Template:Source needed

API types < ITEM QUALITY COLORS

This is an array of item quality colors, used to color the item name any place it appears.

You can also refer to them using ITEM_QUALITY_COLORS[X]. The "description" of the item is given using the constant ITEM_QUALITYX_DESC, which will be localized. The NUM_ITEM_QUALITIES global holds the count of ITEM_QUALITY_COLORS.

The current list is:

0 - Poor
1 - Common
2 - Uncommon
3 - Rare
4 - Epic
5 - Legendary
6 - Artifact
7 - Heirloom ← Pre-Template:Legion-inline Legion
7 - HeirloomTemplate:Legion-inline Legion[citation needed]
8 - WoW Token

Notes

  • Patch 7.0.3 appears to have changed quality 7 (Heirloom), but not sure what ITEM_QUALITY_COLORS[7] shows or GetItemQualityColor(7).[1][citation needed]
  • Patch 6.1.2 introduced quality 8 (aqua cyan) added for Template:Item.
  • As of Patch 5.3.0, ITEM_QUALITY_COLORS and NUM_ITEM_QUALITIES both go to 7.
  • Patch 3.0.2 introduced quality 7 (Heirloom), but neither ITEM_QUALITY7_DESC nor ITEM_QUALITY_COLORS[7] exist as of 3.0.3.
    • Update: As of 3.1.1 it seems ITEM_QUALITY7_DESC is defined as "Heirloom," however ITEM_QUALITY_COLORS[7] still does not exist. Calling GetItemQualityColor(7) does return the correct colors.

References

  1. Items (Heirloom only). Legion Wowhead. Retrieved on 2016-06-30.

See also