| | |
| | |
|
| | | private void OnChatClick()
|
| | | {
|
| | | if (WindowCenter.Instance.CheckOpen<ChatWin>())
|
| | | if (WindowCenter.Instance.CheckOpen<ChatWin>() || WindowCenter.Instance.CheckOpen<SocialWin>())
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | | if (mapId == 31230)
|
| | | {
|
| | | ChatCtrl.Inst.presentChatType = ChatInfoType.Fairy;
|
| | | WindowCenter.Instance.Open<SocialWin>(false, 2);
|
| | | return;
|
| | | }
|
| | | WindowCenter.Instance.Open<ChatWin>();
|
| | | }
|
| | |
| | |
|
| | | void OnChatDataClick(ChatData data)
|
| | | {
|
| | | if (WindowCenter.Instance.CheckOpen<ChatWin>())
|
| | | if (WindowCenter.Instance.CheckOpen<ChatWin>() || WindowCenter.Instance.CheckOpen<SocialWin>())
|
| | | {
|
| | | return;
|
| | | }
|
| | |
| | | {
|
| | | ChatCtrl.Inst.presentChatType = ChatInfoType.Fairy;
|
| | | }
|
| | | switch (ChatCtrl.Inst.presentChatType)
|
| | | {
|
| | | case ChatInfoType.Team:
|
| | | WindowCenter.Instance.Open<SocialWin>(false, 1);
|
| | | break;
|
| | | case ChatInfoType.Fairy:
|
| | | WindowCenter.Instance.Open<SocialWin>(false, 2);
|
| | | break;
|
| | | default:
|
| | | WindowCenter.Instance.Open<ChatWin>();
|
| | | break;
|
| | | }
|
| | | }
|
| | |
|
| | | void OnRefreshChatTip(ChatInfoType type)
|