Quality icons?
WanderingFox opened this issue ยท 4 comments
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.
Added: e6a67bd
Included in v4.6.9 . Let me know if you have any issues with it. Thanks!
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);