public void RefreshBeginUI(OffLineMsgRes down) { string time = TimeConverter.GetTime(down.hasTime, TimeFormat.DHHMM_Chinese); this.textOffTime.set_text(string.Format(GameDataUtils.GetChineseContent(330024, false), time)); this.textLeftTimeValue.set_text(time); this.textLvValue.set_text(string.Format(GameDataUtils.GetChineseContent(330025, false), EntityWorld.Instance.EntSelf.Lv)); this.textNeedExpValue.set_text(string.Format(GameDataUtils.GetChineseContent(330026, false), AttrUtility.GetExpValueStr(down.needExp))); this.textHourExpValue.set_text(string.Format(GameDataUtils.GetChineseContent(330026, false), AttrUtility.GetExpValueStr(down.hourExp))); long value = down.hourExp + down.hourExp * 2L / 10L; this.textPowerExpValue.set_text(string.Format(GameDataUtils.GetChineseContent(330026, false), AttrUtility.GetExpValueStr(value))); }
public void OnOffLineMsgRes(short state, OffLineMsgRes down = null) { if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } if (down != null) { if (this.dataList != null) { this.dataList.hasTime = down.hasTime; } if (OffHookUI.Instance != null && OffHookUI.Instance.get_gameObject().get_activeSelf()) { OffHookUI.Instance.RefreshBeginUI(down); } } }