Hi everyone i'm using the blizzard countdown cooldown, and i want to change the colors.
for like hours it should be white
for minuts yellow
for secounds red
hope someone can help!
Lua Code:
hooksecurefunc("CooldownFrame_Set", function(self, start, duration, enable, charges, maxcharges, forceShowdrawedge)
local CooldownCount = GetCVar("countdownForCooldowns")
if CooldownCount then
if not self.IsCooldownEdited then
local NumRegions = self:GetNumRegions()
self:SetFrameStrata("HIGH")
for i = 1, NumRegions do
local Region = select(i, self:GetRegions())
if Region.GetText then
local ScaleEffective = self:GetEffectiveScale()
local Scale = UIParent:GetScale()
Region:SetPoint("CENTER", 1, 0)
Region:SetFont(C.Media.Font2, ScaleEffective / Scale * C.Cooldowns.FontSize, "OUTLINE")
end
end
self.IsCooldownEdited = true
end
end
end)