少年修仙传客户端代码仓库
hch
2024-12-09 86c08ebc16cfd91452c9d868b9491316adc422b2
0312 优化主界面打开
1个文件已修改
11 ■■■■■ 已修改文件
System/WindowBase/WindowCenter.cs 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/WindowBase/WindowCenter.cs
@@ -533,6 +533,7 @@
        {
            //if (ConfigInitiator.done && window is not MainInterfaceWin && !WindowJumpMgr.Instance.IsJumpState)
            //    CalcMainInterfaceWin();
            checkMainWin = true;
            if (jumpWindowCloseEvent != null)
            {
                jumpWindowCloseEvent(window);
@@ -586,6 +587,12 @@
        {
            var checkMainWinImmedidately = closeCommands.Count + openCommands.Count > 0;
            if (checkMainWin)
            {
                checkMainWinImmedidately = true;
                checkMainWin = false;
            }
            while (closeCommands.Count > 0)
            {
                var command = closeCommands[0];
@@ -629,13 +636,15 @@
            }
            checkTimer += checkMainWinImmedidately ? 1f : Time.deltaTime;
            if (checkTimer > 0.25f)
            if (checkTimer > 0.2f)
            {
                checkTimer = 0f;
                CalcMainInterfaceWin();
            }
        }
        bool checkMainWin = false;
        //主界面的开关默认处理
        public void CalcMainInterfaceWin()
        {