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/MainLevel/MainBossEnterWin.cs | 25 +++++++++++++++----------
1 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/Main/System/MainLevel/MainBossEnterWin.cs b/Main/System/MainLevel/MainBossEnterWin.cs
index 9d7350d..212b555 100644
--- a/Main/System/MainLevel/MainBossEnterWin.cs
+++ b/Main/System/MainLevel/MainBossEnterWin.cs
@@ -22,6 +22,7 @@
[SerializeField] Button rankBtn;
[SerializeField] ItemCell[] passAwards;
[SerializeField] Button fightBtn;
+ [SerializeField] Image fightIcon;
[SerializeField] ScrollerController dropItemScroller;
@@ -89,7 +90,7 @@
int skillID = lineUPConfig.SkillIDExList[i];
skillWordCells[i].Init(skillID, () =>
{
- SmallTipWin.showText = SkillConfig.Get(skillID)?.Description;
+ SmallTipWin.showText = Language.Get("SmallTipFomat",SkillConfig.Get(skillID)?.SkillName, SkillConfig.Get(skillID)?.Description) ;
SmallTipWin.worldPos = CameraManager.uiCamera.ScreenToWorldPoint(Input.mousePosition);
SmallTipWin.isDownShow = true;
UIManager.Instance.OpenWindow<SmallTipWin>();
@@ -105,11 +106,10 @@
fightPowerText.text = UIHelper.ReplaceLargeArtNum(levelConfig.FightPower);
- var canChallengeBoss = AutoFightModel.Instance.CanChallengeBoss();
+ var canChallengeBoss = MainLevelManager.Instance.CanChallengeBoss();
- fightBtn.interactable = canChallengeBoss;
- fightBtn.SetColorful(null, canChallengeBoss);
-
+ fightBtn.SetInteractable(canChallengeBoss);
+ fightIcon.SetActive(canChallengeBoss);
for (int i = 0; i < passAwards.Length; i++)
{
@@ -134,9 +134,14 @@
void FightBoss()
{
- if (AutoFightModel.Instance.CanChallengeBoss())
+ if (MainLevelManager.Instance.CanChallengeBoss())
{
- BattleManager.Instance.MainFightRequest(3);
+ var pack = new CB410_tagCMTurnFight();
+ pack.MapID = 2;
+ // pack.FuncLineID = (uint)PlayerDatas.Instance.baseData.ExAttr1 + 1;
+ GameNetSystem.Instance.SendInfo(pack);
+
+ AutoFightModel.Instance.isPause = true;
}
CloseWindow();
}
@@ -148,10 +153,10 @@
{
case PlayerDataType.ExAttr1:
case PlayerDataType.ExAttr2:
- var canChallengeBoss = AutoFightModel.Instance.CanChallengeBoss();
+ var canChallengeBoss = MainLevelManager.Instance.CanChallengeBoss();
- fightBtn.interactable = canChallengeBoss;
- fightBtn.SetColorful(null, canChallengeBoss);
+ fightBtn.SetInteractable(canChallengeBoss);
+ fightIcon.SetActive(canChallengeBoss);
break;
}
--
Gitblit v1.8.0