少年修仙传客户端代码仓库
hch
2025-03-14 87db3447cc3c5569d374b15422311c9a2aeea6ea
0312 装备分解增加今日不再提示
3个文件已修改
14 ■■■■■ 已修改文件
System/DailyQuest/DayRemind.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/KnapSack/Logic/EquipDecomMailWin.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/MainInterfacePanel/InGamePushContainer.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/DailyQuest/DayRemind.cs
@@ -60,6 +60,7 @@
    public const string WORD_YY_REDPOINT = "wordyyredpoint"; // 集字活动红点
    public const string CZBM_REDPOINT = "czbmredpoint"; // 成长必买红点
    public const string DJQTip = "DJQTip"; // 代金券提示
    public const string EquipDe = "EquipDe"; // 装备分解提示
    public Dictionary<string, int[]> dayRemindDic = new Dictionary<string, int[]>();
@@ -128,6 +129,7 @@
        SetDayRemind(WORD_YY_REDPOINT);
        SetDayRemind(CZBM_REDPOINT);
        SetDayRemind(DJQTip);
        SetDayRemind(EquipDe);
    }
    public void SetDayRemind(string _key)
System/KnapSack/Logic/EquipDecomMailWin.cs
@@ -13,6 +13,8 @@
        [SerializeField] GameObject getMatObj;
        [SerializeField] List<CommonItemBaisc> getMatlist = new List<CommonItemBaisc>();
        [SerializeField] ToggleButton m_ToggleButton; //跳过战斗
        PackModel playerPack { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
        protected override void BindController()
@@ -24,12 +26,14 @@
        {
            closeBtn.AddListener(CloseClick);
            okBtn.AddListener(CloseClick);
            m_ToggleButton.AddListener(ToggleButtonClick);
        }
        protected override void OnPreOpen()
        {
            playerPack.RefreshDecomAttrAct += RefreshDecompose;
            RefreshDecompose();
            m_ToggleButton.isOn = DayRemind.Instance.GetDayRemind(DayRemind.EquipDe);
        }
        protected override void OnAfterOpen()
@@ -47,6 +51,12 @@
        }
        void ToggleButtonClick()
        {
            m_ToggleButton.isOn = !m_ToggleButton.isOn;
            DayRemind.Instance.SetDayRemind(DayRemind.EquipDe, m_ToggleButton.isOn);
        }
        private void RefreshDecompose()
        {
            decomText.text = Language.Get("PetLetter2", playerPack.recordAutoDecomNum, playerPack.addDecomposeExp);
System/MainInterfacePanel/InGamePushContainer.cs
@@ -270,7 +270,7 @@
        private void CheckEquipDecompose()
        {
            if (playerPack.addDecomposeExp > 0
                 && playerPack.isAutoDecompose)
                 && playerPack.isAutoDecompose && !DayRemind.Instance.GetDayRemind(DayRemind.EquipDe))
            {
                m_DecomposePusher.SetActive(true);
            }