| | |
| | | if (!WindowCenter.Instance.CheckOpen<SocialWin>())
|
| | | {
|
| | | ChatCtrl.Inst.presentChatType = ChatInfoType.Fairy;
|
| | | WindowCenter.Instance.CloseImmediately<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<SocialWin>(false, 2);
|
| | | }
|
| | | }
|
| | |
| | | if (mapId == 31230)
|
| | | {
|
| | | ChatCtrl.Inst.presentChatType = ChatInfoType.Fairy;
|
| | | WindowCenter.Instance.CloseImmediately<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<SocialWin>(false, 2);
|
| | | return;
|
| | | }
|
| | |
| | | switch (ChatCtrl.Inst.presentChatType)
|
| | | {
|
| | | case ChatInfoType.Team:
|
| | | WindowCenter.Instance.CloseImmediately<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<SocialWin>(false, 1);
|
| | | break;
|
| | | case ChatInfoType.Fairy:
|
| | | WindowCenter.Instance.CloseImmediately<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<SocialWin>(false, 2);
|
| | | break;
|
| | | default:
|
| | |
| | | else
|
| | | {
|
| | | ChatCtrl.Inst.presentChatType = ChatInfoType.Friend;
|
| | | if (WindowCenter.Instance.CheckOpen<SocialWin>())
|
| | | {
|
| | | WindowJumpMgr.Instance.ClearJumpData();
|
| | | WindowCenter.Instance.CloseImmediately<SocialWin>();
|
| | | }
|
| | | WindowCenter.Instance.Open<ChatWin>();
|
| | | }
|
| | | }
|
| | |
| | |
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | |
|
| | | if (!WindowJumpMgr.Instance.IsJumpState)
|
| | | {
|
| | | WindowCenter.Instance.Open<MainInterfaceWin>();
|
| | | }
|
| | | }
|
| | |
|
| | | private void ClickXianYuanBtn()
|
| | |
| | | //MainRedDot.Instance.redPointFriendChat.state = RedPointState.None;
|
| | | //ChatCtrl.Inst.presentChatType = ChatInfoType.Friend;
|
| | | //WindowCenter.Instance.Open<ChatWin>();
|
| | | WindowCenter.Instance.CloseImmediately<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<SocialWin>();
|
| | | }
|
| | |
|