少年修仙传客户端代码仓库
hch
2024-12-06 1363467532e62782bd76a60847b3c9272aa2a122
0312 还原主界面打开问题
2个文件已修改
19 ■■■■ 已修改文件
System/WindowBase/WindowCenter.cs 17 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/WindowJump/WindowJumpMgr.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/WindowBase/WindowCenter.cs
@@ -496,8 +496,8 @@
        internal void NotifyBeforeOpen<T>(T window) where T : Window
        {
            if (ConfigInitiator.done && window is not MainInterfaceWin && !WindowJumpMgr.Instance.IsJumpState)
                CalcMainInterfaceWin();
            //if (ConfigInitiator.done && window is not MainInterfaceWin && !WindowJumpMgr.Instance.IsJumpState)
            //    CalcMainInterfaceWin();
            if (windowBeforeOpenEvent != null)
            {
@@ -531,8 +531,8 @@
        internal void JumpNotifyAfterClose<T>(T window) where T : Window
        {
            if (ConfigInitiator.done && window is not MainInterfaceWin && !WindowJumpMgr.Instance.IsJumpState)
                CalcMainInterfaceWin();
            //if (ConfigInitiator.done && window is not MainInterfaceWin && !WindowJumpMgr.Instance.IsJumpState)
            //    CalcMainInterfaceWin();
            if (jumpWindowCloseEvent != null)
            {
                jumpWindowCloseEvent(window);
@@ -584,6 +584,8 @@
        float checkTimer = 0f;
        private void LateUpdate()
        {
            var checkMainWinImmedidately = closeCommands.Count + openCommands.Count > 0;
            while (closeCommands.Count > 0)
            {
                var command = closeCommands[0];
@@ -625,6 +627,13 @@
                }
            }
            checkTimer += checkMainWinImmedidately ? 1f : Time.deltaTime;
            if (checkTimer > 0.25f)
            {
                checkTimer = 0f;
                CalcMainInterfaceWin();
            }
        }
        //主界面的开关默认处理
System/WindowJump/WindowJumpMgr.cs
@@ -1830,7 +1830,7 @@
            {
                DeadModel.PlayerDie(PlayerDatas.Instance.baseData.PlayerID);
            }
            WindowCenter.Instance.CalcMainInterfaceWin();
            //WindowCenter.Instance.CalcMainInterfaceWin();
        }
    }