From 3bd7f56906e31e8fe0072108c9d4652707b51de8 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期二, 21 十月 2025 17:59:00 +0800
Subject: [PATCH] 125 战斗 战斗UI

---
 Main/System/Battle/UIComp/BossHeadCell.cs |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/Main/System/Battle/UIComp/BossHeadCell.cs b/Main/System/Battle/UIComp/BossHeadCell.cs
index fc9d14a..6041171 100644
--- a/Main/System/Battle/UIComp/BossHeadCell.cs
+++ b/Main/System/Battle/UIComp/BossHeadCell.cs
@@ -15,6 +15,25 @@
 
     public void SetTeamHero(TeamHero teamHero)
     {
-        
+        if (null == teamHero)
+        {
+            SetDefault();
+            return;
+        }
+
+        HeroSkinConfig heroSkinConfig = teamHero.skinConfig;
+        imgIcon.sprite = UILoader.LoadSprite("HeroHead", heroSkinConfig.SquareIcon);
+        txtLv.text = Language.Get("Arena22", teamHero.level);
+
+        // TODO YYL
+        // imgFrame璺焛mgDecoration绛夊够澧冮榿瀹屾垚涔嬪悗鍐嶆潵鍋�
+    }
+    
+    public void SetDefault()
+    {
+        imgFrame.sprite = null;
+        imgIcon.sprite = null;
+        imgDecoration.sprite = null;
+        txtLv.text = "";
     }
 }

--
Gitblit v1.8.0