From 02d1a98d6a500d41754346cb5f3a1f3c61e0b125 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 24 十月 2025 16:27:15 +0800
Subject: [PATCH] 125 战斗 闪避特效 + 背景图 + 宽比>1.9的偏移
---
Main/System/Battle/BattleField/StoryBossBattleField.cs | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/Main/System/Battle/BattleField/StoryBossBattleField.cs b/Main/System/Battle/BattleField/StoryBossBattleField.cs
index fb71a62..ae18d85 100644
--- a/Main/System/Battle/BattleField/StoryBossBattleField.cs
+++ b/Main/System/Battle/BattleField/StoryBossBattleField.cs
@@ -11,6 +11,8 @@
protected MainLevelConfig levelConfig;
+ protected MainChapterConfig chapterConfig;
+
public StoryBossBattleField(string _guid) : base(_guid)
{
@@ -24,10 +26,20 @@
int level = FuncLineID;// 鍏冲崱
extendData = _extendData;
levelConfig = MainLevelConfig.Get(level);
+ chapterConfig = MainChapterConfig.Get(levelConfig.ChapterID);
SetBattleMode(BattleMode.Record);
}
+ protected override void LoadMap(int mapID)
+ {
+ if (chapterConfig != null)
+ {
+ Texture texture = ResManager.Instance.LoadAsset<Texture>("Texture/FullScreenBg", chapterConfig.MapBG);
+ battleRootNode.SetBackground(texture);
+ }
+ }
+
public override void Release()
{
base.Release();
--
Gitblit v1.8.0