From 69fdc58cb97714f856df268f08451f2ba7e5ecf2 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 21 一月 2026 10:40:56 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/System/HeroUI/HeroPosWin.cs |   35 ++++-------------------------------
 1 files changed, 4 insertions(+), 31 deletions(-)

diff --git a/Main/System/HeroUI/HeroPosWin.cs b/Main/System/HeroUI/HeroPosWin.cs
index f305634..e0c3eb5 100644
--- a/Main/System/HeroUI/HeroPosWin.cs
+++ b/Main/System/HeroUI/HeroPosWin.cs
@@ -66,23 +66,15 @@
 
     protected override void InitComponent()
     {
-        attackTeamBtn.AddListener(() =>
-        {
-            SelectTeamFunc((TeamType)HeroUIManager.Instance.GetSelectTeamTypeByAttackType(0));
-        });
-        defendTeamBtn.AddListener(() =>
-        {
-            SelectTeamFunc((TeamType)HeroUIManager.Instance.GetSelectTeamTypeByAttackType(1));
-        });
 
         mainFBBtn.AddListener(() =>
         {
-            SelectTeamFunc(TeamType.Story);
+            SelectTeamFunc(TeamManager.Instance.GetMainTeamID());
         });
 
         jjcBtn.AddListener(() =>
         {
-            SelectTeamFunc(TeamType.Arena);
+            SelectTeamFunc(TeamManager.Instance.GetTeamID((int)BattlePreSetType.Arena));
         });
         // tttBtn.AddListener(() =>
         // {
@@ -320,25 +312,6 @@
     //绠$悊甯冮樀鍏ュ彛鎸夐挳锛氬绔炴妧鍦烘槸鍚︽牴鎹姛鑳芥樉闅愶紝閫氬ぉ濉斿拰涓荤嚎鍙湁杩涙敾鏂瑰竷闃甸粯璁や笉鏄剧ず
     void RefreshOnTeamBtn()
     {
-        if (HeroUIManager.Instance.selectTeamType == TeamType.Arena ||
-            HeroUIManager.Instance.selectTeamType == TeamType.ArenaDefense)
-        {
-            attackTeamBtn.SetActive(true);
-            defendTeamBtn.SetActive(true);
-            if (HeroUIManager.Instance.selectTeamType == TeamType.Arena)
-            {
-                attackTeamBtn.SelectBtn(true);
-            }
-            else
-            {
-                defendTeamBtn.SelectBtn(true);
-            }
-        }
-        else
-        {
-            attackTeamBtn.SetActive(false);
-            defendTeamBtn.SetActive(false);
-        }
 
     }
 
@@ -528,7 +501,7 @@
         team.SaveTeam();
     }
 
-    void SelectTeamFunc(TeamType type)
+    void SelectTeamFunc(int type)
     {
         if (HeroUIManager.Instance.selectTeamType == type)
         {
@@ -541,7 +514,7 @@
         heroListScroller.m_Scorller.RefreshActiveCellViews();
     }
 
-    protected void OnTeamChange(TeamType teamType)
+    protected void OnTeamChange(int teamType)
     {
         if (HeroUIManager.Instance.selectTeamType == teamType)
         {

--
Gitblit v1.8.0