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
+6
View File
@@ -557,6 +557,9 @@ pfUI:RegisterModule("actionbar", function ()
button:SetHeight(C.bars.icon_size)
button:Show()
local cooldown = _G["PetActionButton"..i..'Cooldown']
cooldown.pfCooldownType = "NOGCD"
local icon = _G["PetActionButton"..i..'Icon']
icon:SetAllPoints(button)
icon:SetParent(button)
@@ -592,6 +595,9 @@ pfUI:RegisterModule("actionbar", function ()
button:SetNormalTexture("")
button.SetNormalTexture = function() return end
local cooldown = _G[actionbutton..i..'Cooldown']
cooldown.pfCooldownType = "NOGCD"
local icon = _G[actionbutton..i..'Icon']
icon:SetAllPoints(button)
icon:SetTexCoord(.08, .92, .08, .92)