少年修仙传客户端代码仓库
client_linchunjie
2018-09-25 c3e180d40c515a046dc0e8421bf910869103b010
3564 聊天重新加回队伍和仙盟频道
4个文件已修改
36 ■■■■■ 已修改文件
System/Chat/ChatCenter.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Chat/ChatCtrl.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Chat/ChatTip.cs 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Chat/ChatWin.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Chat/ChatCenter.cs
@@ -49,8 +49,10 @@
            chatChannels.Add(ChatInfoType.System);
            chatChannels.Add(ChatInfoType.World);
            chatChannels.Add(ChatInfoType.Area);
            chatChannels.Add(ChatInfoType.Team);
            chatChannels.Add(ChatInfoType.Invite);
            chatChannels.Add(ChatInfoType.Trumpet);
            chatChannels.Add(ChatInfoType.Fairy);
            chatChannels.Add(ChatInfoType.Friend);
        }
@@ -768,11 +770,10 @@
                return;
            }
            openChatAfterCollect = false;
            if (!WindowCenter.Instance.CheckOpen<SocialWin>())
            if (!WindowCenter.Instance.CheckOpen<ChatWin>())
            {
                ChatCtrl.Inst.presentChatType = ChatInfoType.Fairy;
                WindowCenter.Instance.CloseImmediately<MainInterfaceWin>();
                WindowCenter.Instance.Open<SocialWin>();
                WindowCenter.Instance.Open<ChatWin>();
            }
        }
        #endregion
System/Chat/ChatCtrl.cs
@@ -1029,13 +1029,15 @@
        switch (type)
        {
            case ChatInfoType.Team:
                if (!WindowCenter.Instance.CheckOpen<TeamChatWin>())
                if (!WindowCenter.Instance.CheckOpen<TeamChatWin>()
                    && (!WindowCenter.Instance.CheckOpen<ChatWin>() || presentChatType != ChatInfoType.Team))
                {
                    unReadChatCounts[ChatInfoType.Team] = Mathf.Min(unReadChatCounts[ChatInfoType.Team] + 1, 99);
                }
                break;
            case ChatInfoType.Fairy:
                if (!WindowCenter.Instance.CheckOpen<FairyChatWin>())
                if (!WindowCenter.Instance.CheckOpen<FairyChatWin>()
                    && (!WindowCenter.Instance.CheckOpen<ChatWin>() || presentChatType != ChatInfoType.Fairy))
                {
                    unReadChatCounts[ChatInfoType.Fairy] = Mathf.Min(unReadChatCounts[ChatInfoType.Fairy] + 1, 99);
                }
System/Chat/ChatTip.cs
@@ -145,7 +145,7 @@
    private void OnChatClick()
    {
        if (WindowCenter.Instance.CheckOpen<ChatWin>() || WindowCenter.Instance.CheckOpen<SocialWin>())
        if (WindowCenter.Instance.CheckOpen<ChatWin>())
        {
            return;
        }
@@ -154,9 +154,6 @@
        if (mapId == 31230)
        {
            ChatCtrl.Inst.presentChatType = ChatInfoType.Fairy;
            WindowCenter.Instance.CloseImmediately<MainInterfaceWin>();
            WindowCenter.Instance.Open<SocialWin>();
            return;
        }
        WindowCenter.Instance.Open<ChatWin>();
    }
@@ -214,7 +211,7 @@
    void OnChatDataClick(ChatData data)
    {
        if (WindowCenter.Instance.CheckOpen<ChatWin>() || WindowCenter.Instance.CheckOpen<SocialWin>())
        if (WindowCenter.Instance.CheckOpen<ChatWin>())
        {
            return;
        }
@@ -224,20 +221,7 @@
        {
            ChatCtrl.Inst.presentChatType = ChatInfoType.Fairy;
        }
        switch (ChatCtrl.Inst.presentChatType)
        {
            case ChatInfoType.Team:
                WindowCenter.Instance.CloseImmediately<MainInterfaceWin>();
                WindowCenter.Instance.Open<SocialWin>(false, 2);
                break;
            case ChatInfoType.Fairy:
                WindowCenter.Instance.CloseImmediately<MainInterfaceWin>();
                WindowCenter.Instance.Open<SocialWin>();
                break;
            default:
                WindowCenter.Instance.Open<ChatWin>();
                break;
        }
        WindowCenter.Instance.Open<ChatWin>();
    }
    void OnRefreshChatTip(ChatInfoType type)
System/Chat/ChatWin.cs
@@ -170,6 +170,7 @@
                    break;
            }
            m_ChatContent.chatType = ChatCtrl.Inst.presentChatType;
            ChatCtrl.Inst.ViewChat(ChatCtrl.Inst.presentChatType);
        }
        private void OnChannelSelect(CellView _cell)