mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-23 20:40:50 +00:00
unitframes: remove custom fade color adjustments
This commit is contained in:
+1
-1
@@ -1842,7 +1842,7 @@ function pfUI.uf:RefreshUnit(unit, component)
|
|||||||
|
|
||||||
if customfade == "1" then
|
if customfade == "1" then
|
||||||
-- fade custom color into default color
|
-- fade custom color into default color
|
||||||
local perc = UnitHealth(unitstr) / UnitHealthMax(unitstr) * 2 - 1
|
local perc = UnitHealth(unitstr) / UnitHealthMax(unitstr)
|
||||||
local cr, cg, cb, ca = pfUI.api.strsplit(",", customcolor)
|
local cr, cg, cb, ca = pfUI.api.strsplit(",", customcolor)
|
||||||
|
|
||||||
r = (cr*perc) + (r*(1-perc))
|
r = (cr*perc) + (r*(1-perc))
|
||||||
|
|||||||
Reference in New Issue
Block a user