mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-25 00:56:02 +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 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
|
||||
|
||||
Reference in New Issue
Block a user