From 1567c1d43dd4631c06ec8752b177baa45fdfab71 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期二, 09 九月 2025 23:24:40 +0800
Subject: [PATCH] 117 【武将】武将系统 - 背景图

---
 Main/System/HeroUI/HeroCollectionCardCell.cs |    6 +++---
 Main/ResModule/UILoader.cs                   |    2 +-
 Main/System/HeroUI/HeroTrainWin.cs           |    2 ++
 3 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/Main/ResModule/UILoader.cs b/Main/ResModule/UILoader.cs
index 6f07dbf..392f0d4 100644
--- a/Main/ResModule/UILoader.cs
+++ b/Main/ResModule/UILoader.cs
@@ -68,6 +68,6 @@
         {
             return null;
         }
-        return ResManager.Instance.LoadAsset<Texture2D>(StringUtility.Contact(ResourcesPath.UI_SPRITE_SUFFIX, "/" + iconConfig.folder), iconConfig.sprite);
+        return ResManager.Instance.LoadAsset<Texture2D>(StringUtility.Contact(ResourcesPath.UI_TEXTURE_SUFFIX, "/" + iconConfig.folder), iconConfig.sprite);
     }
 }
diff --git a/Main/System/HeroUI/HeroCollectionCardCell.cs b/Main/System/HeroUI/HeroCollectionCardCell.cs
index 178ce11..c947636 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));
@@ -78,7 +78,7 @@
             }
         });
         
-        fullBtn.AddListener(() =>
+        bookLVBtn.AddListener(() =>
         {
             HeroUIManager.Instance.selectCollectHeroID = heroID;
             UIManager.Instance.OpenWindow<HeroCollectionLvUpWin>();
diff --git a/Main/System/HeroUI/HeroTrainWin.cs b/Main/System/HeroUI/HeroTrainWin.cs
index 50da7d0..b0c53de 100644
--- a/Main/System/HeroUI/HeroTrainWin.cs
+++ b/Main/System/HeroUI/HeroTrainWin.cs
@@ -9,6 +9,7 @@
 /// </summary>
 public class HeroTrainWin : UIBase
 {
+    [SerializeField] RawImage bgTexture;
     [SerializeField] Button showFuncBtn;    //鍙樉绀虹珛缁樻椂鐐瑰嚮锛屾樉绀哄姛鑳�
     [SerializeField] Transform funcForm;
     [SerializeField] UIHeroController roleLhModel;    //灞曠ず鑻遍泟绔嬬粯
@@ -210,6 +211,7 @@
 
     public void Display()
     {
+        bgTexture.SetTexture2D("countryBG" + hero.heroConfig.Country);
         roleLhModel.Create(hero.SkinID, 1, motionName: "", isLh: true);
         roleXsModel.Create(hero.SkinID);
         jobImg.SetSprite(HeroUIManager.Instance.GetJobIconName(hero.heroConfig.Class));

--
Gitblit v1.8.0