From 22c9e9200f01262e0d596fd971e4299cd72d3e1f Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 05 九月 2025 21:21:56 +0800
Subject: [PATCH] 0312 优化武将升星显示

---
 Main/Utility/ComponentExtersion.cs          |    3 ++-
 Main/System/HeroUI/HeroUIManager.OnTeam.cs  |    4 ++--
 Main/System/HeroUI/HeroGiftEatSuccessWin.cs |    2 +-
 Main/System/HeroUI/HeroUIManager.Reborn.cs  |    2 +-
 Main/System/HeroUI/HeroTrainWin.cs          |    8 +++-----
 Main/System/HeroUI/HeroUIManager.cs         |    2 +-
 6 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/Main/System/HeroUI/HeroGiftEatSuccessWin.cs b/Main/System/HeroUI/HeroGiftEatSuccessWin.cs
index ca093ba..7756c8f 100644
--- a/Main/System/HeroUI/HeroGiftEatSuccessWin.cs
+++ b/Main/System/HeroUI/HeroGiftEatSuccessWin.cs
@@ -58,7 +58,7 @@
         {
             int id = PlayerPropertyConfig.basePerAttrs[i];
             attrPerNameArr[i].text = PlayerPropertyConfig.Get(id).Name;
-            nextAttrPerTextArr[i].text = PlayerPropertyConfig.GetFullDescription(id, valuePer);
+            nextAttrPerTextArr[i].text = PlayerPropertyConfig.GetValueDescription(id, valuePer);
             attrPerTextArr[i].text = PlayerPropertyConfig.GetValueDescription(id, valuePer - hero.qualityConfig.StarAddPer);
         }
 
diff --git a/Main/System/HeroUI/HeroTrainWin.cs b/Main/System/HeroUI/HeroTrainWin.cs
index 57106b3..790067b 100644
--- a/Main/System/HeroUI/HeroTrainWin.cs
+++ b/Main/System/HeroUI/HeroTrainWin.cs
@@ -596,19 +596,17 @@
 
         if (hero.heroStar >= HeroUIManager.Instance.GetMaxStarCount(hero.heroId,  hero.Quality))
         {
-            starUPBtn.SetInteractable(false);
             starUPBtnText.text = Language.Get("HeroGift7");
+            starUPBtn.SetInteractable(false); 
         }
         else if (hero.IsFullStar())
         {
-            starUPBtn.SetInteractable(true);
-            starUPBtn.SetColorful(starUPBtn.GetComponentInChildren<Text>(), true);
+            starUPBtn.interactable = true;
             starUPBtnText.text = Language.Get("HeroGift3");
         }
         else
         {
-            starUPBtn.SetInteractable(true);
-            starUPBtn.SetColorful(starUPBtn.GetComponentInChildren<Text>(), true);
+            starUPBtn.interactable = true;
             starUPBtnText.text = Language.Get("HeroGift3");
         }
 
diff --git a/Main/System/HeroUI/HeroUIManager.OnTeam.cs b/Main/System/HeroUI/HeroUIManager.OnTeam.cs
index b3f4167..6a5846a 100644
--- a/Main/System/HeroUI/HeroUIManager.OnTeam.cs
+++ b/Main/System/HeroUI/HeroUIManager.OnTeam.cs
@@ -148,7 +148,7 @@
         {
             return heroA.Quality > heroB.Quality ? -1 : 1;
         }
-        if (heroA.heroStar != heroA.heroStar)
+        if (heroA.heroStar != heroB.heroStar)
         {
             return heroA.heroStar > heroB.heroStar ? -1 : 1;
         }
@@ -295,7 +295,7 @@
         {
             return heroA.Quality > heroB.Quality ? -1 : 1;
         }
-        if (heroA.heroStar != heroA.heroStar)
+        if (heroA.heroStar != heroB.heroStar)
         {
             return heroA.heroStar > heroB.heroStar ? -1 : 1;
         }
diff --git a/Main/System/HeroUI/HeroUIManager.Reborn.cs b/Main/System/HeroUI/HeroUIManager.Reborn.cs
index f411a1c..a237f37 100644
--- a/Main/System/HeroUI/HeroUIManager.Reborn.cs
+++ b/Main/System/HeroUI/HeroUIManager.Reborn.cs
@@ -134,7 +134,7 @@
         {
             return heroA.Quality < heroB.Quality ? -1 : 1;
         }
-        if (heroA.heroStar != heroA.heroStar)
+        if (heroA.heroStar != heroB.heroStar)
         {
             return heroA.heroStar < heroB.heroStar ? -1 : 1;
         }
diff --git a/Main/System/HeroUI/HeroUIManager.cs b/Main/System/HeroUI/HeroUIManager.cs
index 7774961..5ea30a5 100644
--- a/Main/System/HeroUI/HeroUIManager.cs
+++ b/Main/System/HeroUI/HeroUIManager.cs
@@ -199,7 +199,7 @@
         {
             return heroA.Quality > heroB.Quality ? -1 : 1;
         }
-        if (heroA.heroStar != heroA.heroStar)
+        if (heroA.heroStar != heroB.heroStar)
         {
             return heroA.heroStar > heroB.heroStar ? -1 : 1;
         }
diff --git a/Main/Utility/ComponentExtersion.cs b/Main/Utility/ComponentExtersion.cs
index 7199d1b..e40a071 100644
--- a/Main/Utility/ComponentExtersion.cs
+++ b/Main/Utility/ComponentExtersion.cs
@@ -256,7 +256,8 @@
     }
 
 
-    // 璁剧疆鎸夐挳鏄惁鍙偣鍑伙紝涓旂疆鐏帮紝榛樿鍙栫涓�涓枃鏈紱鍥剧墖闇�鐢↖mageEx缁勪欢
+    // 璁剧疆鎸夐挳鏄惁鍙偣鍑伙紝涓斿彇绗竴涓枃鏈粍浠剁疆鐏版垨缃師鑹�
+    // 瑕佸厛璁剧疆鏂囨湰鍐嶈皟鐢ㄨ鍑芥暟 鍥犱负娌℃湁鏀瑰彉鏂囨湰缁勪欢鐨勯鑹查伩鍏嶉鑹茶杩樺師锛屽悓鐞嗘仮澶嶅彲浠ヤ笉鐢ㄦ敼鍙橀鑹叉敼鏂囧瓧鍗冲彲
     // 鏇村鍔熻兘璇蜂娇鐢⊿etColorful
     public static void SetInteractable(this Button _btn, bool _interactable, Text _btnText = null)
     {

--
Gitblit v1.8.0