少年修仙传客户端代码仓库
client_linchunjie
2018-09-19 9203f8bd22b3cf3fa9bfd537fd16b2e86d7223b1
System/Chat/ChatTip.cs
@@ -145,7 +145,7 @@
    private void OnChatClick()
    {
        if (WindowCenter.Instance.CheckOpen<ChatWin>())
        if (WindowCenter.Instance.CheckOpen<ChatWin>() || WindowCenter.Instance.CheckOpen<SocialWin>())
        {
            return;
        }
@@ -154,6 +154,8 @@
        if (mapId == 31230)
        {
            ChatCtrl.Inst.presentChatType = ChatInfoType.Fairy;
            WindowCenter.Instance.Open<SocialWin>(false, 2);
            return;
        }
        WindowCenter.Instance.Open<ChatWin>();
    }
@@ -211,7 +213,7 @@
    void OnChatDataClick(ChatData data)
    {
        if (WindowCenter.Instance.CheckOpen<ChatWin>())
        if (WindowCenter.Instance.CheckOpen<ChatWin>() || WindowCenter.Instance.CheckOpen<SocialWin>())
        {
            return;
        }
@@ -221,7 +223,18 @@
        {
            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)