| | |
| | | [SerializeField] AvatarCell avatarCell; |
| | | [SerializeField] TextEx txtName; |
| | | [SerializeField] TextEx txtAddScore; |
| | | [SerializeField] TextEx txtServerName; |
| | | [SerializeField] TextEx txtAddCrossScore; |
| | | [SerializeField] TextEx txtFightPoint; |
| | | [SerializeField] OfficialTitleCell officialTitleCell; |
| | | [SerializeField] List<ItemCell> itemCells; |
| | |
| | | avatarCell.InitUI(AvatarHelper.GetAvatarModel((int)arenaMatchInfo.PlayerID, (int)arenaMatchInfo.Face, (int)arenaMatchInfo.FacePic)); |
| | | avatarCell.SetListener(() => |
| | | { |
| | | AvatarHelper.TryViewOtherPlayerInfo((int)arenaMatchInfo.PlayerID, viewPlayerLineupType: (int)BattlePreSetType.Arena); |
| | | int serverID = (ArenaManager.Instance.IsOpenCrossServer() && arenaMatchInfo.PlayerID != PlayerDatas.Instance.baseData.PlayerID) ? (int)arenaMatchInfo.ServerID : 0; |
| | | AvatarHelper.TryViewOtherPlayerInfo((int)arenaMatchInfo.PlayerID, serverID, viewPlayerLineupType: (int)BattlePreSetType.Arena); |
| | | }); |
| | | |
| | | txtName.text = UIHelper.ServerStringTrim(arenaMatchInfo.PlayerName); |
| | | txtFightPoint.text = UIHelper.ReplaceLargeArtNum(arenaMatchInfo.FightPower); |
| | | txtAddScore.text = Language.Get("Arena16", ArenaManager.Instance.GetChallengePoints(index)); |
| | | |
| | | |
| | | bool isCrossServer = ArenaManager.Instance.IsOpenCrossServer(); |
| | | if (isCrossServer) |
| | | { |
| | | txtAddScore.SetActive(false); |
| | | txtServerName.SetActive(true); |
| | | txtServerName.text = ServerListCenter.Instance.GetServerName((int)arenaMatchInfo.ServerID); |
| | | txtAddCrossScore.SetActive(true); |
| | | txtAddCrossScore.text = Language.Get("Arena16", ArenaManager.Instance.GetChallengePoints(index)); |
| | | } |
| | | else |
| | | { |
| | | txtAddScore.SetActive(true); |
| | | txtAddScore.text = Language.Get("Arena16", ArenaManager.Instance.GetChallengePoints(index)); |
| | | txtServerName.SetActive(false); |
| | | txtAddCrossScore.SetActive(false); |
| | | } |
| | | |
| | | officialTitleCell.InitUI(arenaMatchInfo.RealmLV, (int)arenaMatchInfo.TitleID, 0.55f); |
| | | |
| | | int[][] rewards = ArenaManager.Instance.fixedChallengeRewards; |