end |
end |
|
local function OnDisable(self) |
if self.disabled then return end |
local r, g, b = self.label:GetTextColor() |
self.label:SetTextColor(r/2, g/2, b/2) |
self.disabled = true |
end |
|
local function OnEnable(self) |
if not self.disabled then return end |
local r, g, b = self.label:GetTextColor() |
self.label:SetTextColor(r*2, g*2, b*2) |
self.disabled = nil |
end |
|
function lib.CreateCheckbox(parent, text, desc) |
assert( type(parent) == "table" and parent.CreateFontString, "PhanxConfig-Checkbox: Parent is not a valid frame!" ) |
if type(name) ~= "string" then name = nil end |