mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-22 04:00:49 +00:00
gui: round colorpicker values
This commit is contained in:
@@ -419,6 +419,11 @@ pfUI:RegisterModule("gui", function ()
|
|||||||
local r,g,b = ColorPickerFrame:GetColorRGB()
|
local r,g,b = ColorPickerFrame:GetColorRGB()
|
||||||
local a = 1 - OpacitySliderFrame:GetValue()
|
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)
|
preview:SetTexture(r,g,b,a)
|
||||||
|
|
||||||
if not this:GetParent():IsShown() then
|
if not this:GetParent():IsShown() then
|
||||||
|
|||||||
Reference in New Issue
Block a user