WoWInterface SVN PhanxConfigWidgets

Compare Revisions

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

Rev 175 → Rev 174

PhanxConfig-Checkbox/PhanxConfig-Checkbox.lua
54,9 → 54,9
local methods = {}
 
function methods:GetValue()
return not not self:GetChecked() -- WOD: won't need typecasting
return self:GetChecked() == 1
end
function methods:SetValue(value)
function methods:SetValue(value, auto)
self:SetChecked(value)
end
 
95,10 → 95,7
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
107,6 → 104,9
check[name] = func
end
 
check.tooltipText = tooltipText
check:SetHitRectInsets(0, -1 * min(186, max(label:GetStringWidth(), 100)), 0, 0)
 
return check
end