mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-17 18:20:49 +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
|
local preview = this.prev
|
||||||
|
|
||||||
function ColorPickerFrame.func()
|
function ColorPickerFrame.func()
|
||||||
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)
|
r = round(r, 3)
|
||||||
g = round(g, 1)
|
g = round(g, 3)
|
||||||
b = round(b, 1)
|
b = round(b, 3)
|
||||||
a = round(a, 1)
|
a = round(a, 3)
|
||||||
|
|
||||||
preview:SetTexture(r,g,b,a)
|
preview:SetTexture(r,g,b,a)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user