diff --git a/modules/equipmentmanager.lua b/modules/equipmentmanager.lua index efeb5e39..c116738a 100644 --- a/modules/equipmentmanager.lua +++ b/modules/equipmentmanager.lua @@ -596,6 +596,7 @@ pfUI:RegisterModule("equipmentmanager", function() if i <= num then local location = ordered[i] b.specialAction = nil; b.bag = nil; b.slot = nil; b.invSlot = nil + local quality if location == PLACEINBAGS_LOCATION then b.specialAction = "placeInBags" b.texture:SetTexture(pfUI.path.."\\img\\UI-GearManager-ItemIntoBag") @@ -612,15 +613,23 @@ pfUI:RegisterModule("equipmentmanager", function() local loc = EquipmentManager_GetLocationData(location) if loc.isBags then b.bag = loc.bag; b.slot = loc.slot - local tex, count = GetContainerItemInfo(loc.bag, loc.slot) + local tex, count, _, q = GetContainerItemInfo(loc.bag, loc.slot) + quality = q b.texture:SetTexture(tex) if count and count > 1 then b.count:SetText(count) else b.count:SetText("") end else -- isPlayer (equipped in some other slot) b.invSlot = loc.slot b.texture:SetTexture(GetInventoryItemTexture("player", loc.slot)) b.count:SetText("") + quality = GetInventoryItemQuality("player", loc.slot) end end + -- Quality border, matching the character slots + if quality and quality > 0 then + b.backdrop:SetBackdropBorderColor(GetItemQualityColor(quality)) + else + b.backdrop:SetBackdropBorderColor(pfUI.cache.er, pfUI.cache.eg, pfUI.cache.eb, pfUI.cache.ea) + end local col = math.mod(i - 1, FLYOUT_COLS) local row = math.floor((i - 1) / FLYOUT_COLS) b:ClearAllPoints()