Closed WanderingFox closed 1 year ago
I think so but im not sure how to get this info from the game, Ill look into it.
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.
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);
Added: e6a67bd8b050398c52b01155ad4fef9dccc9945d Included in v4.6.9 . Let me know if you have any issues with it. Thanks!
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: