Show Item Secondary Stats
SafeteeWoW opened this issue ยท 4 comments
Can you show the secondary stats (Critical/Mastery/Versatility/Haste) of the item in white text (These stats is colored in white in tooltip, so I recommend to color them in white text) in votingframe and the lootframe? The value doesn't need to be shown. This could be very convenient.
Some adjustment to other widget is needed.
Sample display is
Critical/Mastery
(The stat with higher value is shown first, more crit than mastery)
Mastery/Critical
(More mastery than crit)
WoW API for this feature:
GetItemStats
(Item needs to be cached)
Constants:
ITEM_MOD_HASTE_RATING_SHORT
ITEM_MOD_MASTERY_RATING_SHORT
ITEM_MOD_CRIT_RATING_SHORT
ITEM_MOD_VERSATILITY
These constants is the key of the table returned by GetItemStats.
Its localized text can be fetched from , for example, _G["ITEM_MOD_HASTE_RATING_SHORT"]
Not a difficult feature to implement, the issue is just how to properly adjust the display.
Indeed - and exactly how to show them is a very huge issue. I'll see if I can figure something out.
Dont forget to consider the case when there are more than 2 stats (or no secondary stats, or 1 stat) on the item. Currently it only occurs on the legendary items, but for completeness and for the future, do consider that.