12 lines
257 B
Text
12 lines
257 B
Text
gui.widgets.CheckBox = {
|
|
new: func(parent, style, cfg)
|
|
{
|
|
cfg["type"] = "checkbox";
|
|
var m = gui.widgets.Button.new(parent, style, cfg);
|
|
m._checkable = 1;
|
|
|
|
append(m.parents, gui.widgets.CheckBox);
|
|
return m;
|
|
},
|
|
setCheckable: nil
|
|
};
|