Skip to content
Open
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
6 changes: 6 additions & 0 deletions widgets/ItemButton.lua
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ function buttonProto:OnCreate()
self.NewItemTexture:Hide()
end
self.SplitStack = nil -- Remove the function set up by the template

-- Add support for ElvUI cooldown text, prioritising OmniCC
-- Register as part of ElvUI "bags" module to share ElvUI settings with their bags.
if not OmniCC and ElvUI and ElvUI[1] and ElvUI[1].CooldownEnabled and ElvUI[1].RegisterCooldown and ElvUI[1]:CooldownEnabled() then
ElvUI[1]:RegisterCooldown(self.Cooldown, "bags");
end
end

function buttonProto:OnAcquire(container, bag, slot)
Expand Down