Different behaviour of OmniCC between CooldownFrame_SetTimer() and Frame:SetCooldown()
Spyroh opened this issue ยท 1 comments
I have appreciated a different behaviour of OmniCC between Cooldown Frames activated via CooldownFrame_SetTimer() and the ones activated via Frame:SetCooldown().
Here's an example image of it:
Code used for the example:
local CreateExampleCooldown = function()
local C = CreateFrame("Cooldown", nil, UIParent)
C:SetSize(50, 50)
C.Icon = C:CreateTexture()
C.Icon:SetAllPoints(C)
C.Icon:SetTexture("Interface/Icons/inv_jewelry_trinketpvp_01")
return C
end
-- Cooldown frame with normal number transparency and size
local NormalCD = CreateExampleCooldown()
NormalCD:SetPoint("CENTER", UIParent, "CENTER", -25, 0)
CooldownFrame_SetTimer(NormalCD, GetTime(), 60, true)
-- Cooldown frame with lower number transparency and size
local RareCD = CreateExampleCooldown()
RareCD:SetPoint("CENTER", UIParent, "CENTER", 25, 0)
RareCD:SetCooldown(GetTime(), 60)