cc.EditBox如何禁用啊??
例如:
this._box = new cc.EditBox(cc.size(280, 60), new cc.Scale9Sprite(“res/green_edit.png”));
this._box.setPlaceholderFontColor(cc.color(255, 0, 0));
this._box.setPlaceholderFontSize(24);
this._box.setPlaceHolder(“请输入您的姓名”);
this._box.x = 390;
this._box.y = 712;
this._box.setDelegate(this);
this._box.setFontColor(cc.color(5, 4, 10));
//this._box.setReturnType(cc.KEYBOARD_RETURNTYPE_DONE );
this._box.setFontSize(24);
this.addChild(this._box,3);
如何禁用this._box ?
this._box.setTouchEnabled(false); 试试这个呢?
貌似不可行
可以把,应该是有这个功能的
嗯,我再研究研究