From f306d23e461ab236ed88173f7b4a5bc35a3e9bc9 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 17 九月 2025 15:40:25 +0800
Subject: [PATCH] 153 【武将】招募系统 - 抽奖立绘增加背景图
---
Main/System/HeroUI/HeroCollectionCardCell.cs | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/Main/System/HeroUI/HeroCollectionCardCell.cs b/Main/System/HeroUI/HeroCollectionCardCell.cs
index 178ce11..2a66f7e 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 fullBtn;
+ [SerializeField] Button bookLVBtn;
[SerializeField] GameObject unGetObj;
[SerializeField] GameObject activeObj; // 鍙縺娲诲甫娴佸厜鏁堟灉鏉愯川
@@ -29,7 +29,7 @@
int funcState = HeroUIManager.Instance.GetHeroBookState(heroID, quality);
activeObj.SetActive(funcState == 1);
- fullBtn.SetActive(funcState == 5);
+ bookLVBtn.SetActive(funcState > 1);
unGetObj.SetActive(funcState == 0);
countryImg.SetSprite(HeroUIManager.Instance.GetCountryIconName(heroConfig.Country));
@@ -76,9 +76,14 @@
{
UIManager.Instance.OpenWindow<HeroCollectionLvUpWin>();
}
+ else
+ {
+ HeroUIManager.Instance.selectForPreviewHeroID = heroID;
+ UIManager.Instance.OpenWindow<HeroBestWin>();
+ }
});
- fullBtn.AddListener(() =>
+ bookLVBtn.AddListener(() =>
{
HeroUIManager.Instance.selectCollectHeroID = heroID;
UIManager.Instance.OpenWindow<HeroCollectionLvUpWin>();
--
Gitblit v1.8.0