mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-23 16:16:56 +00:00
unitframes: make text pastel colors optional
This commit is contained in:
+5
-3
@@ -2115,9 +2115,11 @@ function pfUI.uf.GetColor(self, preset)
|
||||
end
|
||||
|
||||
-- pastel
|
||||
r = ( r + .75 ) * .5
|
||||
g = ( g + .75 ) * .5
|
||||
b = ( b + .75 ) * .5
|
||||
if C.unitframes.pastel == "1" then
|
||||
r = ( r + .75 ) * .5
|
||||
g = ( g + .75 ) * .5
|
||||
b = ( b + .75 ) * .5
|
||||
end
|
||||
|
||||
return rgbhex(r,g,b)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user