hch
2025-11-27 3f5c3333d550a798e6afb163306c4db97746d2fe
0312 图鉴中第一个可以升级或者升星的武将,引导用
4个文件已修改
14 ■■■■■ 已修改文件
Main/System/HeroUI/HeroCollectionCardCell.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroCollectionWin.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroUIManager.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/NewBieGuidance/NewBieWin.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/System/HeroUI/HeroCollectionCardCell.cs
@@ -21,6 +21,9 @@
    {
        var heroID = HeroUIManager.Instance.heroCollectDict[quality][index];
        var heroConfig = HeroConfig.Get(heroID);
        this.gameObject.name = $"herocard_{heroID}";
        HB122_tagSCHeroInfo.tagSCHero colData;
        HeroUIManager.Instance.TryGetHeroBookInfo(heroID, out colData);
        heroCardBG.SetSprite("herocardbg" + heroConfig.Quality);
Main/System/HeroUI/HeroCollectionWin.cs
@@ -144,6 +144,7 @@
                    if (HeroUIManager.Instance.IsBookShowRedPoint(ids[j]))
                    {
                        jumpIndex = index;
                        HeroUIManager.Instance.firstHeroIDBookUpdate = ids[j];
                    }
                }
            }
Main/System/HeroUI/HeroUIManager.cs
@@ -28,6 +28,10 @@
    public List<TeamHero> custonTeamHeroes = new List<TeamHero>();
    public Dictionary<int, int> heroStarGuideDic = new Dictionary<int, int>();
    public int firstHeroIDBookUpdate = 0;    //图鉴中第一个可以升级或者升星的武将,引导用
    public override void Init()
    {
        DTC0102_tagCDBPlayer.beforePlayerDataInitializeEvent += OnBeforePlayerDataInitialize;
@@ -89,6 +93,7 @@
        waitResponse = default;
        heroCollectInfoDic.Clear();
        newHeroIDList.Clear();
        firstHeroIDBookUpdate = 0;
    }
@@ -514,6 +519,7 @@
        }
    }
    //某个武将图鉴中是否显示红点
    public bool IsBookShowRedPoint(int heroID)
    {
Main/System/NewBieGuidance/NewBieWin.cs
@@ -415,6 +415,10 @@
                }
                return UIManager.Instance.GetUIRoot().transform.Find($"{newPath}/{findName}{heroID}");
            }
            else if (code == "herobook")
            {
                return UIManager.Instance.GetUIRoot().transform.Find($"{newPath}/{findName}{HeroUIManager.Instance.firstHeroIDBookUpdate}");
            }
            Debug.LogError("引导未知的模糊查找指令:" + code);
            return null;
        }