当有多个togglebutton按钮时,初始设置一个按钮为选中状态:
this.normal.$setSelected(true);
this.normal.touchEnabled = false;
this.system.touchEnabled = true;
切换按钮时
this.normal.touchEnabled = true;
this.system.touchEnabled = false;
this.system.$setSelected(true);
普通按钮设置字体,图片
this.buyBtn.setButtonSkin("b_Blue01","b_Blue_Down01");
this.buyBtn.setLabel(LangManager.instance.getText("@Buy"),true,22);