cooldown: only draw cd on known frames

This commit is contained in:
shagu
2018-04-08 19:04:43 +02:00
parent ea17079ad2
commit 41e2400bcb
8 changed files with 41 additions and 8 deletions
+12
View File
@@ -16,6 +16,18 @@ pfUI:RegisterModule("skin", function ()
EnableMovable("ClassTrainerFrame", "Blizzard_TrainerUI")
EnableMovable("InspectFrame", "Blizzard_InspectUI", { "InspectHonorFrame" })
if C.appearance.cd.blizzard == "1" then
hooksecurefunc("PaperDollItemSlotButton_Update", function()
local cooldown = getglobal(this:GetName().."Cooldown")
cooldown.pfCooldownType = "ALL"
end)
hooksecurefunc("SpellButton_UpdateButton", function()
local cooldown = getglobal(this:GetName().."Cooldown")
cooldown.pfCooldownType = "ALL"
end)
end
_, class = UnitClass("player")
local color = RAID_CLASS_COLORS[class]
local cr, cg, cb = color.r , color.g, color.b