mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-25 17:16:02 +00:00
gui: round color values to 3 digits
This commit is contained in:
+5
-5
@@ -193,13 +193,13 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
|
||||
local preview = this.prev
|
||||
|
||||
function ColorPickerFrame.func()
|
||||
local r,g,b = ColorPickerFrame:GetColorRGB()
|
||||
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)
|
||||
r = round(r, 3)
|
||||
g = round(g, 3)
|
||||
b = round(b, 3)
|
||||
a = round(a, 3)
|
||||
|
||||
preview:SetTexture(r,g,b,a)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user