/** 更新UI */ public void updateUI() { updateLabel(); updateStarSoulView(); reserveExp.text = StarSoulManager.Instance.getStarSoulExp().ToString(); long needExpforOne = starSoul.getEXPUp() - starSoul.getEXP(); long needExpforAll = starSoul.getMaxExp() - starSoul.getEXP(); oneLvExp.text = LanguageConfigManager.Instance.getLanguage("StarSoulStrengWindow_DecThree", needExpforOne.ToString()); allLVExp.text = LanguageConfigManager.Instance.getLanguage("StarSoulStrengWindow_DecFour", needExpforAll.ToString()); expLabel.text = EXPSampleManager.Instance.getExpBarShow(starSoul.getEXPSid(), starSoul.getEXP()); starNameLV.text = starSoul.getName() + " Lv." + starSoul.getLevel(); string[] str = starSoul.getDescribe().Split('#'); if (str.Length > 1) { starInfo1.text = str[0].Split('+')[0] + "[3A9663] +" + str[0].Split('+')[1]; starInfo.text = str[1].Split('+')[0] + "[3A9663] +" + str[1].Split('+')[1]; } else { starInfo1.text = str[0].Split('+')[0] + "[3A9663] +" + str[0].Split('+')[1]; } //starInfo.text = starSoul.getDescribe ().Split('+')[0]+"[3A9663] +"+starSoul.getDescribe().Split('+')[1]; long storeExp = StarSoulManager.Instance.getStarSoulExp(); if (storeExp == 0 || starSoul.isMaxLevel()) { allUpButton.disableButton(true); oneUpButton.disableButton(true); } else { // 升一级需要的经验 long needExp = starSoul.getEXPUp() - starSoul.getEXP(); if (storeExp < needExp) { oneUpButton.disableButton(true); } else { oneUpButton.disableButton(false); } allUpButton.disableButton(false); } }