cooldowns enable/disable in testmode
This commit is contained in:
parent
20a654c810
commit
f0c0286708
@ -238,9 +238,16 @@ end
|
|||||||
|
|
||||||
function Cooldowns:Test(unit)
|
function Cooldowns:Test(unit)
|
||||||
local button = Gladdy.buttons[unit]
|
local button = Gladdy.buttons[unit]
|
||||||
|
if Gladdy.db.cooldown then
|
||||||
button.spellCooldownFrame:Show()
|
button.spellCooldownFrame:Show()
|
||||||
button.lastCooldownSpell = 1
|
button.lastCooldownSpell = 1
|
||||||
self:UpdateTestCooldowns(unit)
|
self:UpdateTestCooldowns(unit)
|
||||||
|
else
|
||||||
|
button.spellCooldownFrame:Hide()
|
||||||
|
button.lastCooldownSpell = 1
|
||||||
|
self:UpdateTestCooldowns(unit)
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function Cooldowns:UpdateTestCooldowns(unit)
|
function Cooldowns:UpdateTestCooldowns(unit)
|
||||||
|
Loading…
Reference in New Issue
Block a user