少年修仙传客户端代码仓库
7759 子 【开发】【主干】洗灵根后技能搭配增加红点 / 【前端】【主干】洗灵根后技能搭配增加红点
4个文件已修改
28 ■■■■■ 已修改文件
System/MainInterfacePanel/LowSettingTip.cs 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Role/ReikiRootResetWin.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Skill/SkillAccordWin.cs 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Skill/SkillModel.cs 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/LowSettingTip.cs
@@ -88,6 +88,10 @@
            {
                WindowCenter.Instance.Open<SkillWin>();
            }
            else if (skillModel.redpoint.state == RedPointState.Simple)
            {
                WindowCenter.Instance.Open<SkillWin>(false, 1);
            }
            else if (skillModel.passSkillRedpoint.state == RedPointState.Simple)
            {
                WindowCenter.Instance.Open<SkillWin>(false, 2);
System/Role/ReikiRootResetWin.cs
@@ -27,6 +27,7 @@
        ReikiRootModel model { get { return ModelCenter.Instance.GetModel<ReikiRootModel>(); } }
        PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
        SkillModel skillModel { get { return ModelCenter.Instance.GetModel<SkillModel>(); } }
        #region Built-in
        protected override void BindController()
        {
@@ -113,6 +114,7 @@
                var pak = new CB207_tagCMResetAttrPoint();
                GameNetSystem.Instance.SendInfo(pak);
                model.resetReikiRootRecord = true;
                skillModel.skillMatchRedpointable = true;
                CloseImmediately();
            }
            else
@@ -142,6 +144,7 @@
                var pak = new CB207_tagCMResetAttrPoint();
                GameNetSystem.Instance.SendInfo(pak);
                model.resetReikiRootRecord = true;
                skillModel.skillMatchRedpointable = true;
                CloseImmediately();
            }
        }
System/Skill/SkillAccordWin.cs
@@ -89,6 +89,10 @@
            m_SkillMatch.AddListener(() =>
            {
                WindowCenter.Instance.Open("SkillMatchWin");
                if (model.skillMatchRedpointable)
                {
                    model.skillMatchRedpointable = false;
                }
            });
            for (int i = 0; i < m_QuickSkills.Count; i++)
            {
System/Skill/SkillModel.cs
@@ -57,7 +57,18 @@
        public int minTaskHole { get; private set; }
        public int maxTaskHole { get; private set; }
        public bool skillMatchRedpointable
        {
            get { return LocalSave.GetBool("SkillMatchRedpointable_" + PlayerDatas.Instance.baseData.PlayerID); }
            set
            {
                LocalSave.SetBool("SkillMatchRedpointable_" + PlayerDatas.Instance.baseData.PlayerID, value);
                UpdateSkillMatchRedpoint();
            }
        }
        public readonly Redpoint redpoint = new Redpoint(103, 10301);
        public readonly Redpoint skillMatchRedpoint = new Redpoint(10301, 1030101);
        void ParseConfig()
        {
@@ -632,6 +643,7 @@
            playerLoginOk = true;
            UpdateRedpoint();
            VerifyQuickSkillExistXp();
            UpdateSkillMatchRedpoint();
            //UpdateTaskHoleRedpoint();
        }
@@ -746,6 +758,11 @@
            }
        }
        void UpdateSkillMatchRedpoint()
        {
            skillMatchRedpoint.state = skillMatchRedpointable ? RedPointState.Simple : RedPointState.None;
        }
        public void SetDayRemind()
        {
            DayRemind.Instance.SetDayRemind(DayRemind.PASS_SKILL_REDPOINT, true);