unitframes: make text pastel colors optional

This commit is contained in:
shagu
2020-05-04 00:00:21 +02:00
parent 5ffb21932c
commit af3a95586e
+5 -3
View File
@@ -2115,9 +2115,11 @@ function pfUI.uf.GetColor(self, preset)
end end
-- pastel -- pastel
r = ( r + .75 ) * .5 if C.unitframes.pastel == "1" then
g = ( g + .75 ) * .5 r = ( r + .75 ) * .5
b = ( b + .75 ) * .5 g = ( g + .75 ) * .5
b = ( b + .75 ) * .5
end
return rgbhex(r,g,b) return rgbhex(r,g,b)
end end