gui: round colorpicker values

This commit is contained in:
shagu
2016-12-10 18:49:26 +01:00
parent a534a92fdc
commit a889848e65
+5
View File
@@ -419,6 +419,11 @@ pfUI:RegisterModule("gui", function ()
local r,g,b = ColorPickerFrame:GetColorRGB()
local a = 1 - OpacitySliderFrame:GetValue()
r = round(r, 1)
g = round(g, 1)
b = round(b, 1)
a = round(a, 1)
preview:SetTexture(r,g,b,a)
if not this:GetParent():IsShown() then