少年修仙传客户端代码仓库
client_linchunjie
2019-03-04 2a86bfa84ad4ed870703022ea765e29f16d25a08
6259 【前端】【2.0】技能升级功能
2个文件已修改
22 ■■■■■ 已修改文件
System/MainInterfacePanel/LowSettingTip.cs 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Skill/TalentModel.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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("技能按钮");
        }
System/Skill/TalentModel.cs
@@ -420,7 +420,7 @@
        #endregion
        #region 红点
        Redpoint talentRedpoint = new Redpoint(103, 10303);
        public Redpoint talentRedpoint = new Redpoint(103, 10303);
        void UpdateRedpoint()
        {
            talentRedpoint.state = RedPointState.None;