WoWInterface SVN PhanxConfigWidgets

Compare Revisions

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

Rev 108 → Rev 121

PhanxConfig-Checkbox.lua
61,7 → 61,7
self:SetChecked(value)
end
 
function lib.CreateCheckbox(parent, text, desc)
function lib:New(parent, text, desc)
assert(type(parent) == "table" and type(rawget(parent, 0) == "userdata"), "PhanxConfig-Checkbox: parent must be a frame")
if type(name) ~= "string" then name = nil end
if type(desc) ~= "string" then desc = nil end
93,4 → 93,6
end
 
return check
end
\ No newline at end of file +end + +function lib.CreateCheckbox(...) return lib:New(...) end \ No newline at end of file