WoWInterface SVN PhanxConfigWidgets

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/PhanxConfig-Checkbox
    from Rev 136 to Rev 137
    Reverse comparison

Rev 136 → Rev 137

PhanxConfig-Checkbox.lua
61,17 → 61,20
self:SetChecked(value)
end
 
function methods:GetTooltipText()
function methods:GetLabel()
return self.labelText:GetText()
end
function methods:SetLabel(text)
self.labelText:SetText(text)
end
 
function methods:GetTooltip()
return self.tooltipText
end
function methods:SetTooltipText(text)
function methods:SetTooltip(text)
self.tooltipText = text
end
 
function methods:SetFunction(func)
self.func = func
end
 
------------------------------------------------------------------------
 
function lib:New(parent, text, tooltipText)
91,7 → 94,7
local label = check:CreateFontString(nil, "ARTWORK", "GameFontHighlight")
label:SetPoint("LEFT", check, "RIGHT", 2, 1)
label:SetText(text)
check.label = label
check.labelText = label
 
check:SetMotionScriptsWhileDisabled(true)
for name, func in pairs(scripts) do