cooldown: change color for cd lower than 3 sec

This commit is contained in:
shagu
2017-03-01 20:20:39 +01:00
parent 6402e29b1b
commit 3ef3113a8e
3 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -30,7 +30,9 @@ pfUI:RegisterModule("cooldown", function ()
if remaining >= 0 then
local r, g, b, a = 1, 1, 1, 1
local unit = ""
local color = "|cffffffff"
if remaining <= 3 then
r,g,b,a = strsplit(",", C.appearance.cd.seccolor)
end
if remaining > 99 then
remaining = remaining / 60
unit = "m"
+1
View File
@@ -825,6 +825,7 @@ pfUI:RegisterModule("gui", function ()
pfUI.gui:CreateConfig(pfUI.gui.appearance, "Bags Border Size", C.appearance.border, "bags")
pfUI.gui:CreateConfig(pfUI.gui.appearance, "Cooldown", nil, nil, "header")
pfUI.gui:CreateConfig(pfUI.gui.appearance, "Cooldown Color (3 Sec)", C.appearance.cd, "seccolor", "color")
pfUI.gui:CreateConfig(pfUI.gui.appearance, "Cooldown Color (Minutes)", C.appearance.cd, "mincolor", "color")
pfUI.gui:CreateConfig(pfUI.gui.appearance, "Cooldown Color (Hours)", C.appearance.cd, "hourcolor", "color")
pfUI.gui:CreateConfig(pfUI.gui.appearance, "Cooldown Color (Days)", C.appearance.cd, "daycolor", "color")