From 0e3029a3dc4375c7eab8de9ccf07b5a2595c0070 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期日, 24 八月 2025 00:05:59 +0800
Subject: [PATCH] 117 【武将】武将系统 - 武将属性查看,非主线上阵武将战力提升显示

---
 Main/System/HeroUI/HeroTrainWin.cs |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/Main/System/HeroUI/HeroTrainWin.cs b/Main/System/HeroUI/HeroTrainWin.cs
index 45c67a1..f8c39e8 100644
--- a/Main/System/HeroUI/HeroTrainWin.cs
+++ b/Main/System/HeroUI/HeroTrainWin.cs
@@ -7,7 +7,7 @@
 /// <summary>
 /// 姝﹀皢鍩瑰吇鐣岄潰
 /// </summary>
-public class HeroTrainWin : UIBase
+public partial class HeroTrainWin : UIBase
 {
     [SerializeField] Button showFuncBtn;    //鍙樉绀虹珛缁樻椂鐐瑰嚮锛屾樉绀哄姛鑳�
     [SerializeField] Transform funcForm;
@@ -61,6 +61,9 @@
     [SerializeField] Text allPotentialText; //娼滆兘
     string guid;
     HeroInfo hero;
+
+
+
     protected override void InitComponent()
     {
         showFuncBtn.AddListener(() =>
@@ -132,7 +135,7 @@
         HeroManager.Instance.onHeroChangeEvent -= RefreshHeroEvent;
     }
 
-
+    
     public override void Refresh()
     {
         roleLhModel.Create(hero.SkinID, HeroUIManager.lihuiScale, motionName: "", isLh: true);
@@ -141,6 +144,7 @@
         jobPosNameText.text = HeroUIManager.Instance.GetJobName(hero.heroConfig.Class);
         descText.text = hero.heroConfig.Desc;
         fightPowerText.text = UIHelper.ReplaceLargeArtNum(hero.CalculatePower());
+        PlayerMainDate.Instance.AddPowerNotOnTeam(hero);
         lockImg.SetActive(hero.isLock);
         unLockImg.SetActive(!hero.isLock);
         nameText.text = hero.breakLevel == 0 ? hero.heroConfig.Name : Language.Get("herocardbreaklv", hero.heroConfig.Name, hero.breakLevel);
@@ -432,6 +436,7 @@
                 {
                     addPerObject.SetActive(false);
                 });
+                HeroUIManager.Instance.lastFightPower = new KeyValuePair<int, long>(hero.heroId, hero.CalculatePower(false));
             }
 
         }
@@ -475,6 +480,8 @@
         }
 
         allPotentialText.text = allAttrStr.Trim();
-    
+
     }
+
+
 }
\ No newline at end of file

--
Gitblit v1.8.0