少年修仙传客户端代码仓库
client_Wu Xijin
2019-06-13 38a098c0b09f1260a6d6d9ad4d526daf36f736c2
3335 修改新获得法宝飞到屏幕外的问题
2个文件已修改
27 ■■■■ 已修改文件
System/MainInterfacePanel/MainInterfaceWin.cs 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/MainPositionTween.cs 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/MainInterfaceWin.cs
@@ -437,10 +437,12 @@
            }
            else
            {
                if (_unflod)
                m_MainPositionTween.SwitchFunctions(new MainPositionTween.SwitchParam()
                {
                    m_MainPositionTween.SwitchFunctions(new MainPositionTween.SwitchParam() { showDefault = true, immediately = false });
                }
                    bottomState = _unflod ? MainPositionTween.RightBottomState.Function : MainPositionTween.RightBottomState.Skill,
                    showDefault = true,
                    immediately = false
                });
            }
        }
System/MainInterfacePanel/MainPositionTween.cs
@@ -196,10 +196,19 @@
                    break;
            }
            var rightBottomState = resetToDefaultTimer <= 0f
                && switchParams.showDefault
                && !isGuiding
                && !treasureModel.newGotShowing ? RightBottomState.Skill : RightBottomState.Function;
            var rightBottomState = RightBottomState.Skill;
            switch (switchParams.bottomState)
            {
                case RightBottomState.None:
                    rightBottomState = resetToDefaultTimer <= 0f
                    && switchParams.showDefault
                    && !isGuiding
                    && !treasureModel.newGotShowing ? RightBottomState.Skill : RightBottomState.Function;
                    break;
                default:
                    rightBottomState = switchParams.bottomState;
                    break;
            }
            switch (rightBottomState)
            {
@@ -276,6 +285,7 @@
        public enum RightBottomState
        {
            None,
            Function,
            Skill,
        }
@@ -292,6 +302,7 @@
            public bool showDefault;
            public bool immediately;
            public bool manual;
            public RightBottomState bottomState;
        }
    }