public override void onShowed() { ResetLvLProxy.getInstance().addEventListener(ResetLvLProxy.EVENT_RESETLVL, onResetLvLSucc); lab_fightingCapacityValue.text = PlayerModel.getInstance().combpt.ToString(); lab_level.text = ContMgr.getCont("a3_resetlvl_lv", new List <string>() { PlayerModel.getInstance().up_lvl.ToString(), PlayerModel.getInstance().lvl.ToString() }); profession = PlayerModel.getInstance().profession; zhuan = PlayerModel.getInstance().up_lvl; uint lvl = PlayerModel.getInstance().lvl; uint exp = ResetLvLModel.getInstance().getExpByResetLvL(profession, zhuan, lvl); uint currentExp = PlayerModel.getInstance().exp > ResetLvLModel.getInstance().getAllExpByZhuan(profession, zhuan)?ResetLvLModel.getInstance().getAllExpByZhuan(profession, zhuan):PlayerModel.getInstance().exp; lab_experience.text = string.Format("{0}/{1}", currentExp, ResetLvLModel.getInstance().getAllExpByZhuan(profession, zhuan));// 玩家经验/当前转等级经验 sliderExperience.maxValue = ResetLvLModel.getInstance().getAllExpByZhuan(profession, zhuan); sliderExperience.value = PlayerModel.getInstance().exp; statusPointStr = ResetLvLModel.getInstance().getAwardAttrPointByZhuan(profession, zhuan).ToString(); createNum(uint.Parse(statusPointStr)); lab_waradEquip.text = getAwardDescStr(zhuan); lab_consumeGolds.text = ResetLvLModel.getInstance().getNeedGoldsByZhuan(profession, zhuan).ToString(); lab_consumeGolds.color = getGoldsColor(); txt_currentZhuan.sprite = GAMEAPI.ABUI_LoadSprite("icon_resetlvl_" + zhuan); // zhuan.ToString()+"转"; txt_targetZhuan.sprite = GAMEAPI.ABUI_LoadSprite("icon_resetlvl_" + (zhuan + 1)); //(zhuan + 1).ToString() + "转"; nextZhuanLvl.text = ContMgr.getCont("a3_resetlvl_lv", new List <string>() { (zhuan + 1).ToString(), ResetLvLModel.getInstance().getNextLvLByZhuan(profession, zhuan, currentExp).ToString() }); createAvatar(); btn_description.addEvent(); btn_reincarnation.addEvent(); btn_close.addEvent(); touchBG.addEvent(); }
override public void onShowed() { welfareProxy.getInstance().addEventListener(welfareProxy.SUCCESSGETFIRSTRECHARGEAWARD, onSuccessGetFirstRechargeAward); InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_FUNCTIONBAR); Toclose = false; transform.FindChild("tip").gameObject.SetActive(false); if (welfareProxy.totalRecharge <= 0) { btnRecharge.transform.FindChild("Text").GetComponent <Text>().text = ContMgr.getCont("a3_firstRechargeAward_1"); } else { if (welfareProxy.firstRecharge <= 0) { btnRecharge.transform.FindChild("Text").GetComponent <Text>().text = ContMgr.getCont("a3_firstRechargeAward_2"); btnRecharge.removeAllListener(); btnRecharge.addEvent(); btnRecharge.onClick = onBtnDrawClick; } else { btnRecharge.transform.FindChild("Text").GetComponent <Text>().text = ContMgr.getCont("a3_firstRechargeAward_3"); btnRecharge.removeAllListener(); } } //createEquip(); }
public override void onShowed() { btn_close.addEvent(); want_to(); refresh(); }