Baggins

Baggins

1M Downloads

Quality icons?

WanderingFox opened this issue ยท 4 comments

commented

Would it be possible to add quality icons to items (in the same way item upgrade arrows are added)?

Like how the profession window shows them:
image

commented

I think so but im not sure how to get this info from the game, Ill look into it.

commented

The icons appear to be in the atlas professionqualityicons as:

  • Professions-Icon-Quality-Tier1-Inv
  • Professions-Icon-Quality-Tier2-Inv
  • Professions-Icon-Quality-Tier3-Inv
  • Professions-Icon-Quality-Tier4-Inv
  • Professions-Icon-Quality-Tier5-Inv

Not sure how to get the quality of the item in the bag though.

image

commented

Added: e6a67bd
Included in v4.6.9 . Let me know if you have any issues with it. Thanks!

commented

Looks like it's done something like this in the blizz source (not sure how much is actually needed for baggins though since this is ripped out of the profession ui):

quality = C_TradeSkillUI.GetItemReagentQualityByItemInfo(itemIDOrLink) or  C_TradeSkillUI.GetItemCraftedQualityByItemInfo(itemIDOrLink);
button.ProfessionQualityOverlay = button:CreateTexture(nil, "OVERLAY");
button.ProfessionQualityOverlay:SetPoint("TOPLEFT", -3, 2);
button.ProfessionQualityOverlay:SetDrawLayer("OVERLAY", 7);
local atlas = ("Professions-Icon-Quality-Tier%d-Inv"):format(quality);
button.ProfessionQualityOverlay:SetAtlas(atlas, TextureKitConstants.UseAtlasSize);
ItemButtonMixin.UpdateCraftedProfessionsQualityShown(button);