From 839a7503b16d0f2b5a14f5c24abe04051945e98a Mon Sep 17 00:00:00 2001 From: Akkua Date: Sun, 30 Oct 2022 08:41:30 +1000 Subject: [PATCH] Add support for ElvUI cooldown text --- widgets/ItemButton.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/widgets/ItemButton.lua b/widgets/ItemButton.lua index 76301f28..a90b4a3c 100644 --- a/widgets/ItemButton.lua +++ b/widgets/ItemButton.lua @@ -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)