From 89343a7a0909e5244a3b69c4db1294de4536243b Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期一, 15 十二月 2025 18:15:22 +0800
Subject: [PATCH] 262 幻境阁系统-客户端 新增仅适用武将解锁的头像和形象的红点移除规则

---
 Main/System/HeroUI/HeroCollectionCardCell.cs |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/Main/System/HeroUI/HeroCollectionCardCell.cs b/Main/System/HeroUI/HeroCollectionCardCell.cs
index e403273..28de4b4 100644
--- a/Main/System/HeroUI/HeroCollectionCardCell.cs
+++ b/Main/System/HeroUI/HeroCollectionCardCell.cs
@@ -13,7 +13,7 @@
     [SerializeField] Text nameText;
     [SerializeField] Image trainStateImg;
     [SerializeField] RedpointBehaviour redpoint;
-    [SerializeField] Button bookLVBtn;
+    // [SerializeField] Button bookLVBtn;
     [SerializeField] GameObject unGetObj;
     [SerializeField] GameObject activeObj; // 鍙縺娲诲甫娴佸厜鏁堟灉鏉愯川
 
@@ -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);
@@ -29,7 +32,7 @@
         int funcState = HeroUIManager.Instance.GetHeroBookState(heroID, quality);
 
         activeObj.SetActive(funcState == 1);
-        bookLVBtn.SetActive(funcState > 1);
+        // bookLVBtn.SetActive(funcState > 1);
         unGetObj.SetActive(funcState == 0);
 
         countryImg.SetSprite(HeroUIManager.Instance.GetCountryIconName(heroConfig.Country));
@@ -83,11 +86,11 @@
             }
         });
         
-        bookLVBtn.AddListener(() =>
-        {
-            HeroUIManager.Instance.selectCollectHeroID = heroID;
-            UIManager.Instance.OpenWindow<HeroCollectionLvUpWin>();
-        });
+        // bookLVBtn.AddListener(() =>
+        // {
+        //     HeroUIManager.Instance.selectCollectHeroID = heroID;
+        //     UIManager.Instance.OpenWindow<HeroCollectionLvUpWin>();
+        // });
     }
 }
 

--
Gitblit v1.8.0