| | |
| | | [SerializeField] AvatarCell avatarCell; |
| | | [SerializeField] Text playerNameText; |
| | | [SerializeField] Text powerText; |
| | | [SerializeField] Text officialRankText; |
| | | [SerializeField] OfficialTitleCell officialRankText; |
| | | [SerializeField] Text goldText; |
| | | [SerializeField] Text sparText; |
| | | |
| | |
| | | powerText.text = UIHelper.ReplaceLargeArtNum(PlayerDatas.Instance.baseData.FightPoint); |
| | | break; |
| | | case PlayerDataType.RealmLevel: |
| | | officialRankText.text = RealmConfig.Get(PlayerDatas.Instance.baseData.realmLevel).Name; |
| | | officialRankText.InitUI(PlayerDatas.Instance.baseData.realmLevel, PlayerDatas.Instance.baseData.TitleID); |
| | | break; |
| | | case PlayerDataType.TotalExp: |
| | | case PlayerDataType.ExpPoint: |
| | |
| | | playerLevelText.text = PlayerDatas.Instance.baseData.LV.ToString(); |
| | | powerText.text = UIHelper.ReplaceLargeArtNum(PlayerDatas.Instance.baseData.FightPoint); |
| | | |
| | | officialRankText.text = RealmConfig.Get(PlayerDatas.Instance.baseData.realmLevel).Name; |
| | | officialRankText.InitUI(PlayerDatas.Instance.baseData.realmLevel, PlayerDatas.Instance.baseData.TitleID); |
| | | |
| | | ShowExp(); |
| | | |
| | |
| | | var taskConfig = TaskConfig.Get(task.TaskID); |
| | | taskText.text = taskConfig.TaskDescribe; |
| | | taskNumText.text = string.Format("({0}/{1})", task.CurValue, taskConfig.NeedValue); |
| | | taskNumText.color = task.CurValue >= taskConfig.NeedValue ? UIHelper.GetUIColor(TextColType.NavyBrown) : UIHelper.GetUIColor(TextColType.Red); |
| | | taskNumText.color = task.CurValue >= taskConfig.NeedValue ? UIHelper.GetUIColor(TextColType.NavyYellow) : UIHelper.GetUIColor(TextColType.Red); |
| | | taskEffect.SetActive(TaskManager.Instance.GetMainTaskState() == 2); |
| | | awardIcon.SetSprite(ItemConfig.Get(taskConfig.AwardItemList[0][0]).IconKey); |
| | | awardCnt.text = taskConfig.AwardItemList[0][1].ToString(); |