少年修仙传客户端代码仓库
client_Hale
2018-09-25 f2cd8cf71a54e251e5f507c7d69c6f91f90e5074
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);
        }
@@ -708,7 +710,7 @@
            CheckChatFloatOpen();
            if (win is MainInterfaceWin)
            {
                CheckOpenChatAfterCollect();
                SnxxzGame.Instance.StartCoroutine(Co_CheckAfterCollect());
            }
        }
@@ -744,6 +746,12 @@
            CheckOpenChatAfterCollect();
        }
        IEnumerator Co_CheckAfterCollect()
        {
            yield return null;
            CheckOpenChatAfterCollect();
        }
        void CheckOpenChatAfterCollect()
        {
            if (!openChatAfterCollect)
@@ -754,7 +762,7 @@
            {
                return;
            }
            if (!WindowCenter.Instance.Open<MainInterfaceWin>()
            if (!WindowCenter.Instance.CheckOpen<MainInterfaceWin>()
                || WindowCenter.Instance.ExitAnyFullScreenOrMaskWin()
                || StageManager.Instance.isLoading
                || NewBieCenter.Instance.inGuiding)
@@ -762,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