mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 14:10:01 +00:00
cooldown: only draw cd on known frames
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user