Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion widgets/ItemButton.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ else
buttonClass, buttonProto = addon:NewClass("ItemButton", "Button", "ContainerFrameItemButtonTemplate", "ABEvent-1.0")
end

local childrenNames = { "Cooldown", "IconTexture", "IconQuestTexture", "Count", "Stock", "NormalTexture", "NewItemTexture" }
local childrenNames = { "Cooldown", "IconTexture", "IconQuestTexture", "Count", "Stock", "NormalTexture", "NewItemTexture", "IconOverlay2" }

function buttonProto:OnCreate()
local name = self:GetName()
Expand Down Expand Up @@ -327,6 +327,7 @@ function buttonProto:Update()
self:UpdateNew()
if addon.isRetail then
self:UpdateUpgradeIcon()
self:UpdateOverlay()
end
if self.UpdateSearch then
self:UpdateSearch()
Expand Down Expand Up @@ -439,6 +440,11 @@ function buttonProto:UpdateBorder(isolatedEvent)
end
end

function buttonProto:UpdateOverlay()
local _, _, _, quality = GetContainerItemInfo(self.bag, self.slot)
SetItemButtonOverlay(self, self.itemId or self.itemLink or 0, quality)
end

--------------------------------------------------------------------------------
-- Item stack button
--------------------------------------------------------------------------------
Expand Down