Skip to content

Commit

Permalink
BorderGlow Fix
Browse files Browse the repository at this point in the history
- Fixed when Clicking or Moving an item where the BorderGlow of some items would go away.
  • Loading branch information
MleveK committed Nov 19, 2022
1 parent 9b0db82 commit a4fc8f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion widgets/ContainerFrame.lua
Expand Up @@ -857,7 +857,6 @@ function containerProto:DispatchItem(slotData, fullUpdate)
local sectionName, category, filterName, shouldStack, stackHint = self:FilterSlot(slotData)
assert(sectionName, "sectionName is nil, item: "..(slotData.link or "none"))
local stackKey = shouldStack and stackHint or nil
--print(stackHint)
local existing, button = self:FindExistingButton(slotId, stackKey)
if existing then
button = existing
Expand Down
10 changes: 6 additions & 4 deletions widgets/ItemButton.lua
Expand Up @@ -434,12 +434,13 @@ end
local function GetBorder(bag, slot, itemId, settings)
if addon.isRetail or addon.isWrath then
if settings.questIndicator then
local isQuestItem, questId, isActive
if addon.isRetail then
local isQuestItem = addon:SafeGetItem(GetContainerItemQuestInfo(bag, slot), "isQuestItem")
local questId = addon:SafeGetItem(GetContainerItemQuestInfo(bag, slot), "questId")
local isActive = addon:SafeGetItem(GetContainerItemQuestInfo(bag, slot), "isActive")
isQuestItem = addon:SafeGetItem(GetContainerItemQuestInfo(bag, slot), "isQuestItem")
questId = addon:SafeGetItem(GetContainerItemQuestInfo(bag, slot), "questId")
isActive = addon:SafeGetItem(GetContainerItemQuestInfo(bag, slot), "isActive")
else
local isQuestItem, questId, isActive = GetContainerItemQuestInfo(bag, slot)
isQuestItem, questId, isActive = GetContainerItemQuestInfo(bag, slot)
end
if questId and not isActive then
return TEXTURE_ITEM_QUEST_BANG
Expand Down Expand Up @@ -475,6 +476,7 @@ local function hasItem(i)
end
function buttonProto:UpdateBorder(isolatedEvent)
self.hasItem = not not GetContainerItemID(self.bag, self.slot) --Need to Reset hasItem as it Resets to 1 for some reason
local texture, r, g, b, a, x1, x2, y1, y2, blendMode
if hasItem(self.hasItem) then
texture, r, g, b, a, x1, x2, y1, y2, blendMode = GetBorder(self.bag, self.slot, self.itemLink or self.itemId, addon.db.profile)
Expand Down

0 comments on commit a4fc8f4

Please sign in to comment.