Change Logs

This commit is contained in:
Tercio Jose
2024-01-20 17:28:09 -03:00
parent b7c2b6c7a1
commit 3298663488
4 changed files with 20 additions and 10 deletions
+2 -2
View File
@@ -1037,7 +1037,7 @@ end
------------------------------------------------------------------------------------------------------------
--color picker button
local pickcolorCallback = function(self, red, green, blue, alpha, button)
alpha = math.abs(alpha - 1)
alpha = math.max(0, math.min(1, alpha))
button.MyObject.color_texture:SetVertexColor(red, green, blue, alpha)
--safecall
@@ -1047,7 +1047,7 @@ end
local pickcolor = function(self)
local red, green, blue, alpha = self.MyObject.color_texture:GetVertexColor()
alpha = math.abs(alpha - 1)
alpha = math.max(0, math.min(1, alpha))
detailsFramework:ColorPick(self, red, green, blue, alpha, pickcolorCallback)
end