少年修仙传客户端代码仓库
client_Wu Xijin
2019-03-05 efa5f8d07fc3321f6ac5f5d97fb422db28d0886f
System/MainInterfacePanel/LowSettingTip.cs
@@ -79,8 +79,26 @@
        void SkillButton()
        {
            WindowCenter.Instance.Close<MainInterfaceWin>();
            WindowCenter.Instance.Open<SkillWin>();
           
            var skillModel = ModelCenter.Instance.GetModel<SkillModel>();
            var treasureSkillModel = ModelCenter.Instance.GetModel<TreasureSkillModel>();
            var talentModel = ModelCenter.Instance.GetModel<TalentModel>();
            if (skillModel.passSkillRedpoint.state == RedPointState.Simple)
            {
                WindowCenter.Instance.Open<SkillWin>(false, 1);
            }
            else if (treasureSkillModel.redpoint.state == RedPointState.Simple)
            {
                WindowCenter.Instance.Open<SkillWin>(false, 2);
            }
            else if (talentModel.talentRedpoint.state == RedPointState.Simple)
            {
                WindowCenter.Instance.Open<SkillWin>(false, 3);
            }
            else
            {
                WindowCenter.Instance.Open<SkillWin>();
            }
            //DesignDebug.Log("技能按钮");
        }