mirror of https://github.com/axmolengine/axmol.git
sync codes from cpp to js (#17042)
This commit is contained in:
parent
3adbc2a116
commit
bd0789e22c
|
@ -110,8 +110,8 @@ var UICheckBoxDefaultBehaviorTest = UIMainLayer.extend({
|
||||||
|
|
||||||
var checkBoxDisabled2 = new ccui.CheckBox("ccs-res/cocosui/check_box_normal.png", "ccs-res/cocosui/check_box_active.png");
|
var checkBoxDisabled2 = new ccui.CheckBox("ccs-res/cocosui/check_box_normal.png", "ccs-res/cocosui/check_box_active.png");
|
||||||
checkBoxDisabled2.setPosition(cc.p(widgetSize.width / 2 + 70, widgetSize.height / 2));
|
checkBoxDisabled2.setPosition(cc.p(widgetSize.width / 2 + 70, widgetSize.height / 2));
|
||||||
|
checkBoxDisabled2.setBright(false);
|
||||||
checkBoxDisabled2.setSelected(true);
|
checkBoxDisabled2.setSelected(true);
|
||||||
checkBoxDisabled2.setBright(true);
|
|
||||||
this._mainNode.addChild(checkBoxDisabled2);
|
this._mainNode.addChild(checkBoxDisabled2);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue