WoWInterface SVN PhanxConfigWidgets

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 174 to Rev 175
    Reverse comparison

Rev 174 → Rev 175

trunk/PhanxConfig-Checkbox/PhanxConfig-Checkbox.lua
54,9 → 54,9
local methods = {}
 
function methods:GetValue()
return self:GetChecked() == 1
return not not self:GetChecked() -- WOD: won't need typecasting
end
function methods:SetValue(value, auto)
function methods:SetValue(value)
self:SetChecked(value)
end
 
95,7 → 95,10
label:SetText(text)
check.labelText = label
 
check.tooltipText = tooltipText
check:SetHitRectInsets(0, -1 * min(186, max(label:GetStringWidth(), 100)), 0, 0)
check:SetMotionScriptsWhileDisabled(true)
 
for name, func in pairs(scripts) do
check:SetScript(name, func)
check[name] = func
104,9 → 107,6
check[name] = func
end
 
check.tooltipText = tooltipText
check:SetHitRectInsets(0, -1 * min(186, max(label:GetStringWidth(), 100)), 0, 0)
 
return check
end