From 22c1d8cdc556944613771c0e57d355bb4d8744b4 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期六, 01 三月 2025 13:29:52 +0800
Subject: [PATCH] 0312 修复不能对仙盟成员和好友进行操作的问题

---
 System/Tip/PlayerDetails.cs |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/System/Tip/PlayerDetails.cs b/System/Tip/PlayerDetails.cs
index 49bbf80..5adef05 100644
--- a/System/Tip/PlayerDetails.cs
+++ b/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;
+
+        //璋冪敤姝ゆ帴鍙e繀椤讳繚璇佽兘鑾峰彇鐜╁缂撳瓨淇℃伅锛屽鏋滀笉鑳借幏鍙栵紝闇�鑰冭檻鍚庣画鐨勮〃鐜版儏鍐垫槸鍚﹀悎鐞�
         public static void ShowPlayerDetails(int _playerId, Action<DetailType> _func, OpenType _type = OpenType.Default)
         {
             openType = _type;
@@ -20,8 +22,30 @@
             _pak.PlayerID = (uint)_playerId;
             GameNetSystem.Instance.SendInfo(_pak);
             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;

--
Gitblit v1.8.0