From 3f5c3333d550a798e6afb163306c4db97746d2fe Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 27 十一月 2025 17:18:01 +0800
Subject: [PATCH] 0312 图鉴中第一个可以升级或者升星的武将,引导用

---
 Main/System/HeroUI/HeroCollectionCardCell.cs |    3 +++
 Main/System/NewBieGuidance/NewBieWin.cs      |    4 ++++
 Main/System/HeroUI/HeroCollectionWin.cs      |    1 +
 Main/System/HeroUI/HeroUIManager.cs          |    6 ++++++
 4 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/Main/System/HeroUI/HeroCollectionCardCell.cs b/Main/System/HeroUI/HeroCollectionCardCell.cs
index e403273..6ca449a 100644
--- a/Main/System/HeroUI/HeroCollectionCardCell.cs
+++ b/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);
diff --git a/Main/System/HeroUI/HeroCollectionWin.cs b/Main/System/HeroUI/HeroCollectionWin.cs
index edf7488..b72cd66 100644
--- a/Main/System/HeroUI/HeroCollectionWin.cs
+++ b/Main/System/HeroUI/HeroCollectionWin.cs
@@ -144,6 +144,7 @@
                     if (HeroUIManager.Instance.IsBookShowRedPoint(ids[j]))
                     {
                         jumpIndex = index;
+                        HeroUIManager.Instance.firstHeroIDBookUpdate = ids[j];
                     }
                 }
             }
diff --git a/Main/System/HeroUI/HeroUIManager.cs b/Main/System/HeroUI/HeroUIManager.cs
index f8abdb7..0d18016 100644
--- a/Main/System/HeroUI/HeroUIManager.cs
+++ b/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)
     {
diff --git a/Main/System/NewBieGuidance/NewBieWin.cs b/Main/System/NewBieGuidance/NewBieWin.cs
index 31402bc..9f5ff0d 100644
--- a/Main/System/NewBieGuidance/NewBieWin.cs
+++ b/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;
         }

--
Gitblit v1.8.0