少年修仙传客户端代码仓库
hch
2025-02-13 92808879aec1ba6cc5f7dde23f9204e2d91af087
0312 修复异步打开同一个界面可能导致蒙版错乱问题
2个文件已修改
38 ■■■■■ 已修改文件
System/MainInterfacePanel/OffLineOnHookModel.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/WindowBase/Window.cs 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/OffLineOnHookModel.cs
@@ -120,7 +120,7 @@
                if (openWinState == 1)
                {
                    //累计时间低于120秒不弹界面
                    if (info.AwardSeconds > 120)
                    if (info.AwardSeconds > 360)
                        openWinState = 2;
                    else
                        openWinState = 0;
System/WindowBase/Window.cs
@@ -308,6 +308,24 @@
                if (windowTimer > windowInfo.tween.duration)
                {
                    OnAfterOpen();
                    //检查蒙版是否正常
                    try
                    {
                        if (windowMask != null)
                        {
                            Debug.Log("windowMask:" + windowMask.transform.GetSiblingIndex() + " rectTransform:" + rectTransform.GetSiblingIndex() + " name:" + this.rectTransform.name);
                            if (windowMask.transform.GetSiblingIndex() >= rectTransform.GetSiblingIndex())
                            {
                                windowMask.transform.SetSiblingIndex(rectTransform.GetSiblingIndex());
                            }
                        }
                    }
                    catch (System.Exception ex)
                    {
                        OperationLogCollect.Instance.BugReportSys(ex.ToString());
                        Debug.LogError(ex.StackTrace);
                    }
                    try
                    {
                        WindowCenter.Instance.NotifyAfterOpen(this);
@@ -328,6 +346,24 @@
            else
            {
                OnAfterOpen();
                //检查蒙版是否正常
                try
                {
                    if (windowMask != null)
                    {
                        Debug.Log("windowMask:" + windowMask.transform.GetSiblingIndex() + " rectTransform:" + rectTransform.GetSiblingIndex() + " name:" + this.rectTransform.name);
                        if (windowMask.transform.GetSiblingIndex() >= rectTransform.GetSiblingIndex())
                        {
                            windowMask.transform.SetSiblingIndex(rectTransform.GetSiblingIndex());
                        }
                    }
                }
                catch (System.Exception ex)
                {
                    OperationLogCollect.Instance.BugReportSys(ex.ToString());
                    Debug.LogError(ex.StackTrace);
                }
                try
                {
                    WindowCenter.Instance.NotifyAfterOpen(this);