少年修仙传客户端代码仓库
hch
2025-03-01 22c1d8cdc556944613771c0e57d355bb4d8744b4
System/Tip/PlayerDetails.cs
@@ -10,6 +10,8 @@
        public static OpenType openType { get; private set; }
        public static event Action<DetailType> onClickFuncEvent;
        public static event Action<DetailType> updateDetailTypeEvent;
        //调用此接口必须保证能获取玩家缓存信息,如果不能获取,需考虑后续的表现情况是否合理
        public static void ShowPlayerDetails(int _playerId, Action<DetailType> _func, OpenType _type = OpenType.Default)
        {
            openType = _type;
@@ -22,6 +24,28 @@
            RectTransformUtility.ScreenPointToLocalPointInRectangle(WindowCenter.Instance.uiRoot.tipsCanvas, Input.mousePosition, WindowCenter.Instance.uiRoot.uicamera, out targetPos);
        }
        //不查询玩家信息,直接显示对象操作列表
        public static void ShowPlayerDetailsEx(int _playerId, string playerName, int lv, int job, int realmLV, int onlineTYype, Action<DetailType> _func, OpenType _type = OpenType.Default)
        {
            openType = _type;
            onClickFuncEvent = _func;
            PlayerID = _playerId;
            LV = lv;
            Job = job;
            OnlineType = onlineTYype;
            RealmLV = realmLV;
            PlayerName = playerName;
            IsInTeam = ModelCenter.Instance.GetModel<TeamModel>().myTeam.GetIndexOfMember(PlayerID) != -1 ? 1 : 0;
            RectTransformUtility.ScreenPointToLocalPointInRectangle(WindowCenter.Instance.uiRoot.tipsCanvas, Input.mousePosition, WindowCenter.Instance.uiRoot.uicamera, out targetPos);
            if (!WindowCenter.Instance.IsOpen<PlayerDetailWin>())
            {
                WindowCenter.Instance.Open<PlayerDetailWin>();
            }
        }
        public static void ShowCrossServerChatPlayer(ChatUeseData data)
        {
            openType = OpenType.CrossPlayer;