local btnCB = ccui.CheckBox:create(
"button/btn_n.png",
"button/btn_p.png",
"button/checkbox_on.png",
"button/btn_d.png",
"button/checkbox_off.png",
0
):addTo(self):pos(display.cx, display.cy)
btnCB:setSelected(true)
-- btnCB:setEnabled(false)
btnCB:addEventListener(function(sender, eventType)
if eventType == ccui.CheckBoxEventType.selected then
print("change to slected")
elseif eventType == ccui.CheckBoxEventType.unselected then
print("change to unslected")
end