From a889848e65e5a699be96ef8630bfd2dabe1a21ea Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 10 Dec 2016 18:49:26 +0100 Subject: [PATCH] gui: round colorpicker values --- modules/gui.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/gui.lua b/modules/gui.lua index 2157989a..e2a6a9cc 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -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