少年修仙传客户端代码仓库
client_Wu Xijin
2019-06-11 b84883ac4248001d6e7dea2356aa855a667ab945
3335 去除一个无用的红点id
1个文件已修改
35 ■■■■■ 已修改文件
System/Dungeon/IceCrystalVeinModel.cs 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Dungeon/IceCrystalVeinModel.cs
@@ -5,9 +5,7 @@
//冰晶矿脉新
using System;
using System.Collections.Generic;
using Snxxz.UI;
[XLua.LuaCallCSharp]
public class IceLodeStarAwardClass
@@ -40,8 +38,7 @@
    DungeonModel m_Model;
    DungeonModel model { get { return m_Model ?? (m_Model = ModelCenter.Instance.GetModel<DungeonModel>()); } }
    public const int ICECRYSTALVEIN_MAPID = 31140;
    public const int ICECRYSTALVEIN_REDPOINT = 78102;
    public Redpoint Redpoint = new Redpoint(78001, ICECRYSTALVEIN_REDPOINT);
    public override void Init()
    {
        var IceLodeCfg = FuncConfigConfig.Get("IceLodeCfg");
@@ -61,10 +58,6 @@
    private void dungeonRecordChangeEvent(int fbId)
    {
        if (fbId == ICECRYSTALVEIN_MAPID)
        {
            IsShowRedPoint();
        }
    }
    public override void UnInit()
@@ -75,7 +68,6 @@
    {
        model.dungeonRecordChangeEvent += dungeonRecordChangeEvent;
        AddIceLodeStarAwardList();
        IsShowRedPoint();
    }
    private void Assignment()
@@ -126,7 +118,6 @@
        HasSweep = (int)info.HasSweep;
        DayLv = (int)info.DayLV;
        AddIceLodeStarAwardList();
        IsShowRedPoint();
        if (UpdateIceLodeInf != null)
        {
            UpdateIceLodeInf();
@@ -162,7 +153,7 @@
    public bool IsFree(int Index)
    {
        DungeonRecord dungeonRecord;
        if (model.TryGetRecord(31140, out dungeonRecord))
        if (model.TryGetRecord(ICECRYSTALVEIN_MAPID, out dungeonRecord))
        {
            if (dungeonRecord.lineGrades.ContainsKey(Index))
            {
@@ -195,28 +186,6 @@
            {
                IceLodeStarAwardList.Add(Dic);
            }
        }
    }
    private void  IsShowRedPoint()//是否显示红点
    {
        bool Isbool = false;
        for (int i = 0; i < IceLodeStarAwardList.Count; i++)
        {
            IceLodeStarAwardClass IceLode = IceLodeStarAwardList[i];
            int All_star = GetAllStar();
            bool _bool = MathUtility.GetBitValue((uint)AwardRecord, (ushort)IceLode.Index);
            if (All_star >= IceLode.Star && !_bool)
            {
                Isbool = true;
            }
        }
        if (Isbool)
        {
            Redpoint.state = RedPointState.Simple;
        }
        else
        {
            Redpoint.state = RedPointState.None;
        }
    }
}