Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:API ITEM QUALITY COLORS
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapitype}} The global array ITEM_QUALITY_COLORS is a set of item [[quality]] colors, used to color the item name any place it appears. == Structure == Each ITEM_QUALITY_COLORS[] element returns a table with the same values as [[API GetItemQualityColor]]. The keys and values of this table are: * r (number) - red component of the color (0 to 1, inclusive). * g (number) - green component of the color (0 to 1, inclusive). * b (number) - blue component of the color (0 to 1, inclusive). * hex (string) - a full WoW text color hex string, like 'c|ffcc00ff'. See [[UI escape sequences|UI escape sequence]] == Values == * 0 - <span style="color:#9d9d9d">Poor</span> * 1 - <span style="color:#ffffff">Common</span> * 2 - <span style="color:#1eff00">Uncommon</span> * 3 - <span style="color:#0070dd">Rare</span> * 4 - <span style="color:#a335ee">Epic</span> * 5 - <span style="color:#ff8000">Legendary</span> * 6 - <span style="color:#e6cc80">Artifact</span> * 7 - <span style="color:#e6cc80">Heirloom</span> * 8 - <span style="color:#00ccff">WoW Token</span> == Details == You can refer to them using ITEM_QUALITY_COLORS[n], where 'n' is the quality number. The "description" of the item is given using the constant ITEM_QUALITYX_DESC, where 'X' is the quality number, which will be localized. The NUM_ITEM_QUALITIES global variable holds the count of ITEM_QUALITY_COLORS. == Changes == * [[Patch 3.0.2]] introduced quality 7 (<span class="qc-heirloom">Heirloom</span>), but neither <code>ITEM_QUALITY7_DESC</code> nor <code>ITEM_QUALITY_COLORS[7]</code> exist as of [[Patch 3.0.3]]. * In [[Patch 3.1.1]] it seems <code>ITEM_QUALITY7_DESC</code> is defined as "Heirloom," however <code>ITEM_QUALITY_COLORS[7]</code> still does not exist, however <code>GetItemQualityColor(7)</code> does return the correct colors. * As of [[Patch 5.3.0]], <code>ITEM_QUALITY_COLORS</code> and <code>NUM_ITEM_QUALITIES</code> both go to 7. * [[Patch 6.1.2]] added quality 8 <span style="color: #00ccff">aqua cyan</span> for [[WoW Token]]. * As of [[Patch 7.0.3]], purportedly the Heirloom color for <code>_G["ITEM_QUALITY7_DESC"]</code> or <code>ITEM_QUALITY_COLORS[7]</code> has changed from Heirloom <code>ffe6cc80</code> (<code style="color:#e6cc80;">#e6cc80</code>; the leading <code>ff</code> is probably for alpha) to Heirloom <code>ff00ccff</code><ref name="wowheadLegionHeirlooms">{{ref web|work=Legion [[Wowhead]]|url=http://legion.wowhead.com/items/quality:7|title=Items (Heirloom only)|accessdate=30-Jun-2016}}</ref>{{fact}} (<code style="color:#00ccff;">#00ccff</code>). As of current released trial version [[Patch 6.2.4]] on this 2nd day of July, 2016, the value is still <code>ffe6cc80</code>. The color change can be also seen at <code>[[BAG_ITEM_QUALITY_COLORS]]</code>, but also doesn't show up in-game as of [[Patch 7.0.3hotfix15]]. == References == {{Reflist}} == See also == *[[API GetItemQualityColor]] *[[API TYPE Quality]] * [[BAG_ITEM_QUALITY_COLORS]]
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Fact
(
edit
)
Template:Ref web
(
edit
)
Template:Reflist
(
edit
)
Template:Texttip
(
edit
)
Template:Wowapi
(
edit
)
Template:Wowapitype
(
edit
)