Improve UICheckBox issue

This commit is contained in:
pandamicro 2015-12-20 21:13:16 +08:00
parent 8f836162aa
commit 80973677ed
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ var UICheckBoxDefaultBehaviorTest = UIMainLayer.extend({
this._bottomDisplayLabel.setString("");
// Add the alert
var alert = new ccui.Text("Only left two and the last checkbox can be cliked!","Marker Felt",20 );
var alert = new ccui.Text("Only left two can be cliked!","Marker Felt",20 );
alert.setColor(cc.color(159, 168, 176));
alert.setPosition(cc.p(widgetSize.width / 2, widgetSize.height / 2 - alert.getContentSize().height * 1.75));
this._mainNode.addChild(alert);
@ -111,7 +111,7 @@ var UICheckBoxDefaultBehaviorTest = UIMainLayer.extend({
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.setSelected(true);
checkBoxDisabled2.setBright(false);
checkBoxDisabled2.setBright(true);
this._mainNode.addChild(checkBoxDisabled2);
return true;
}