少年修仙传客户端代码仓库
client_linchunjie
2018-10-25 15c4e88a655a64dc0a3ddac75e0594a6e1b35341
System/Skill/SkillPanel.cs
@@ -62,6 +62,15 @@
        private void OnTalentFunc()
        {
            CloseChild();
            functionOrder = 2;
            if (windowState == WindowState.Opened)
            {
                WindowCenter.Instance.OpenWithoutAnimation<TalentWin>();
            }
            else
            {
                WindowCenter.Instance.Open<TalentWin>();
            }
        }
        private void OnAccordFunc()
@@ -83,7 +92,7 @@
        protected override void OnActived()
        {
            base.OnActived();
            functionButtonTalent.state = TitleBtnState.Locked;
            //functionButtonTalent.state = TitleBtnState.Locked;
            if (functionOrder == 0 && model.jumpToPass)
            {
@@ -120,12 +129,16 @@
        void CloseChild()
        {
            if (WindowCenter.Instance.CheckOpen<SkillAccordWin>()) {
            if (WindowCenter.Instance.IsOpen<SkillAccordWin>()) {
                WindowCenter.Instance.CloseImmediately<SkillAccordWin>();
            }
            if (WindowCenter.Instance.CheckOpen<SkillPassWin>()) {
            if (WindowCenter.Instance.IsOpen<SkillPassWin>()) {
                WindowCenter.Instance.CloseImmediately<SkillPassWin>();
            }
            if (WindowCenter.Instance.IsOpen<TalentWin>())
            {
                WindowCenter.Instance.CloseImmediately<TalentWin>();
            }
        }
    }
}