- updated all libraries
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
--[[-----------------------------------------------------------------------------
|
||||
Checkbox Widget
|
||||
-------------------------------------------------------------------------------]]
|
||||
local Type, Version = "CheckBox", 26
|
||||
local Type, Version = "CheckBox", 27
|
||||
local AceGUI = LibStub and LibStub("AceGUI-3.0", true)
|
||||
if not AceGUI or (AceGUI:GetWidgetVersion(Type) or 0) >= Version then return end
|
||||
|
||||
@@ -97,7 +97,7 @@ local methods = {
|
||||
if disabled then
|
||||
self.frame:Disable()
|
||||
self.text:SetTextColor(0.5, 0.5, 0.5)
|
||||
SetDesaturation(self.check, true)
|
||||
self.check:SetDesaturated(true)
|
||||
if self.desc then
|
||||
self.desc:SetTextColor(0.5, 0.5, 0.5)
|
||||
end
|
||||
@@ -105,9 +105,9 @@ local methods = {
|
||||
self.frame:Enable()
|
||||
self.text:SetTextColor(1, 1, 1)
|
||||
if self.tristate and self.checked == nil then
|
||||
SetDesaturation(self.check, true)
|
||||
self.check:SetDesaturated(true)
|
||||
else
|
||||
SetDesaturation(self.check, false)
|
||||
self.check:SetDesaturated(false)
|
||||
end
|
||||
if self.desc then
|
||||
self.desc:SetTextColor(1, 1, 1)
|
||||
@@ -119,15 +119,15 @@ local methods = {
|
||||
local check = self.check
|
||||
self.checked = value
|
||||
if value then
|
||||
SetDesaturation(check, false)
|
||||
self.check:SetDesaturated(false)
|
||||
check:Show()
|
||||
else
|
||||
--Nil is the unknown tristate value
|
||||
if self.tristate and value == nil then
|
||||
SetDesaturation(check, true)
|
||||
self.check:SetDesaturated(true)
|
||||
check:Show()
|
||||
else
|
||||
SetDesaturation(check, false)
|
||||
self.check:SetDesaturated(false)
|
||||
check:Hide()
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user