512 跨服演武场
1.隐藏跨服后的本服排行界面预设入口
2.机器人服务器名显示本服名称
3.修复无法查看排行榜玩家信息bug
| | |
| | | var index = line.IndexOf("\t");
|
| | | if (index == -1)
|
| | | {
|
| | | continue;
|
| | | string result = line.Trim();
|
| | | index = result.Length;
|
| | | }
|
| | |
|
| | | string strKey = line.Substring(0, index);
|
| | |
| | | typeof(PresetUnlockConfig),
|
| | | typeof(PriorBundleConfig),
|
| | | typeof(RandomNameConfig),
|
| | | typeof(RobotConfig),
|
| | | typeof(SignInConfig),
|
| | | typeof(SkillSkinConfig),
|
| | | typeof(StoreConfig),
|
| | |
| | | ClearConfigDictionary<PriorBundleConfig>();
|
| | | // 清空 RandomNameConfig 字典
|
| | | ClearConfigDictionary<RandomNameConfig>();
|
| | | // 清空 RobotConfig 字典
|
| | | ClearConfigDictionary<RobotConfig>();
|
| | | // 清空 SignInConfig 字典
|
| | | ClearConfigDictionary<SignInConfig>();
|
| | | // 清空 SkillSkinConfig 字典
|
| New file |
| | |
| | | //-------------------------------------------------------- |
| | | // [Author]: YYL |
| | | // [ Date ]: Thursday, May 7, 2026 |
| | | //-------------------------------------------------------- |
| | | |
| | | using System.Collections.Generic; |
| | | using System; |
| | | using UnityEngine; |
| | | using LitJson; |
| | | |
| | | public partial class RobotConfig : ConfigBase<int, RobotConfig> |
| | | { |
| | | static RobotConfig() |
| | | { |
| | | // 访问过静态构造函数 |
| | | visit = true; |
| | | } |
| | | |
| | | public int ID; |
| | | |
| | | public override int LoadKey(string _key) |
| | | { |
| | | int key = GetKey(_key); |
| | | return key; |
| | | } |
| | | |
| | | public override void LoadConfig(string input) |
| | | { |
| | | try { |
| | | string[] tables = input.Split('\t'); |
| | | int.TryParse(tables[0],out ID); |
| | | } |
| | | catch (Exception exception) |
| | | { |
| | | Debug.LogError(exception); |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | fileFormatVersion: 2 |
| | | guid: fcdec0934a6834f498bdf03a22e215c5 |
| | | MonoImporter: |
| | | externalObjects: {} |
| | | serializedVersion: 2 |
| | | defaultReferences: [] |
| | | executionOrder: 0 |
| | | icon: {instanceID: 0} |
| | | userData: |
| | | assetBundleName: |
| | | assetBundleVariant: |
| | |
| | | { |
| | | txtAddScore.SetActive(false); |
| | | txtServerName.SetActive(true); |
| | | txtServerName.text = ServerListCenter.Instance.GetServerName((int)arenaMatchInfo.ServerID); |
| | | if (ArenaManager.Instance.IsRobot((int)arenaMatchInfo.PlayerID)) |
| | | txtServerName.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(PlayerDatas.Instance.baseData.AccID)); |
| | | else |
| | | txtServerName.text = ServerListCenter.Instance.GetServerName((int)arenaMatchInfo.ServerID); |
| | | txtAddCrossScore.SetActive(true); |
| | | txtAddCrossScore.text = Language.Get("Arena16", ArenaManager.Instance.GetChallengePoints(index)); |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | DateTime sunday = seasonStartDate.AddDays(6); |
| | | seasonEndDate = new DateTime(sunday.Year, sunday.Month, sunday.Day, 23, 59, 59); |
| | | } |
| | | |
| | | public bool IsRobot(int playerID) |
| | | { |
| | | return RobotConfig.HasKey(playerID); |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | // 跨服显示服务器名称 |
| | | if (isCross && serverText != null) |
| | | { |
| | | serverText.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(rankData.name2)); |
| | | if (ArenaManager.Instance.IsRobot((int)rankData.id)) |
| | | serverText.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(PlayerDatas.Instance.baseData.AccID)); |
| | | else |
| | | serverText.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(rankData.name2)); |
| | | } |
| | | |
| | | avatarCell.SetListener(() => |
| | |
| | | |
| | | if (isCross && serverText != null) |
| | | { |
| | | serverText.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(rankData.name2)); |
| | | if (ArenaManager.Instance.IsRobot((int)rankData.id)) |
| | | serverText.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(PlayerDatas.Instance.baseData.AccID)); |
| | | else |
| | | serverText.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(rankData.name2)); |
| | | } |
| | | |
| | | queryPlayerBtn.SetListener(() => |
| | | { |
| | | AvatarHelper.TryViewOtherPlayerInfo((int)rankData.id, viewPlayerLineupType: (int)BattlePreSetType.Arena); |
| | | int serverID = (ArenaManager.Instance.IsOpenCrossServer() && rankData.id != PlayerDatas.Instance.baseData.PlayerID) ? UIHelper.GetServerIDByAccount(rankData.name2) : 0; |
| | | AvatarHelper.TryViewOtherPlayerInfo((int)rankData.id, serverID, viewPlayerLineupType: (int)BattlePreSetType.Arena); |
| | | }); |
| | | } |
| | | |
| | |
| | | { |
| | | // 跨服记录:显示跨服时间和跨服服务器 |
| | | txtCrossDate.text = FormatTime(arenaGameRec.Time); |
| | | txtServerName.text = ServerListCenter.Instance.GetServerName((int)arenaGameRec.ServerID); |
| | | if (ArenaManager.Instance.IsRobot((int)arenaGameRec.Value3)) |
| | | txtServerName.text = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(PlayerDatas.Instance.baseData.AccID)); |
| | | else |
| | | txtServerName.text = ServerListCenter.Instance.GetServerName((int)arenaGameRec.ServerID); |
| | | } |
| | | else |
| | | { |
| | |
| | | DTC0102_tagCDBPlayer.beforePlayerDataInitializeEventOnRelogin -= OnBeforePlayerDataInitializeEventOnRelogin; |
| | | } |
| | | |
| | | public bool IsRobot(int playerID) |
| | | { |
| | | return RobotConfig.HasKey(playerID); |
| | | } |
| | | |
| | | public void OnBeforePlayerDataInitializeEventOnRelogin() |
| | | { |
| | |
| | | { |
| | | txtPlayerName.text = viewPlayerData.PlayerName; |
| | | txtPlayerId.text = Language.Get("OtherPlayerDetail02", viewPlayerData.PlayerID); |
| | | txtServerName.text = Language.Get("PlayerProfile11", ServerListCenter.Instance.GetServerName(viewPlayerData.ServerID)); |
| | | if (OtherPlayerDetailManager.Instance.IsRobot(viewPlayerData.PlayerID)) |
| | | txtServerName.text = Language.Get("PlayerProfile11", ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(PlayerDatas.Instance.baseData.AccID))); |
| | | else |
| | | txtServerName.text = Language.Get("PlayerProfile11", ServerListCenter.Instance.GetServerName(viewPlayerData.ServerID)); |
| | | txtLV.text = viewPlayerData.LV.ToString(); |
| | | avatarCell.InitUI(AvatarHelper.GetAvatarModel(viewPlayerData.PlayerID, viewPlayerData.Face, viewPlayerData.FacePic)); |
| | | officialTitle.InitUI(viewPlayerData.RealmLV, viewPlayerData.TitleID, 0.65f); |