| | |
| | | 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; |
| | |
| | | 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; |