【假战斗】背景走表配置
parent
9fca63f5a1
commit
f7a1ddbc94
|
@ -224,8 +224,11 @@ function this:OnOpen(_fightData, _fightType, _endFunc, _guideType,isChangeBGM)
|
|||
isBack = _fightType == BATTLE_TYPE.BACK --判定是否是战斗回放
|
||||
hadCounted = 0
|
||||
-- LogPink(fightType)
|
||||
this.BG:GetComponent("Image").sprite = this.spLoader:LoadSprite(BattleManager.GetBattleBg(fightType))
|
||||
|
||||
if _fightData.bg then
|
||||
this.BG:GetComponent("Image").sprite = this.spLoader:LoadSprite(_fightData.bg)
|
||||
else
|
||||
this.BG:GetComponent("Image").sprite = this.spLoader:LoadSprite(BattleManager.GetBattleBg(fightType))
|
||||
end
|
||||
-- SoundManager.PlayMusic(SoundConfig.BGM_Battle_1, true, function()
|
||||
if not isChangeBGM then
|
||||
SoundManager.PlayMusic(SoundConfig.BGM_Battle_2, false)
|
||||
|
|
|
@ -86,10 +86,10 @@ function this:OnOpen(_fightData, _endFunc, guideType)
|
|||
endFunc = _endFunc
|
||||
|
||||
fightType = BATTLE_TYPE.Test --判定战斗类型
|
||||
if guideType == 1 then
|
||||
this.BG:GetComponent("Image").sprite = this.spLoader:LoadSprite("r_zhandou_changjing_1005")
|
||||
if _fightData.bg then
|
||||
this.BG:GetComponent("Image").sprite = this.spLoader:LoadSprite(_fightData.bg)
|
||||
else
|
||||
this.BG:GetComponent("Image").sprite = this.spLoader:LoadSprite("r_zhandou_changjing_2")
|
||||
this.BG:GetComponent("Image").sprite = this.spLoader:LoadSprite(BattleManager.GetBattleBg(fightType))
|
||||
end
|
||||
|
||||
this.BtnGM:SetActive(true)
|
||||
|
|
|
@ -5,6 +5,7 @@ local chapterDataConfig = ConfigManager.GetConfig(ConfigName.ChapterEventPointCo
|
|||
local chapterOptionData = ConfigManager.GetConfig(ConfigName.ChapterOptionConfig)
|
||||
local chapterTitleData = ConfigManager.GetConfig(ConfigName.LevelSetting)
|
||||
local dialogueSetData = ConfigManager.GetConfig(ConfigName.DialogueViewConfig)
|
||||
local FakeBattleNew = ConfigManager.GetConfig(ConfigName.FakeBattleNew)
|
||||
|
||||
|
||||
|
||||
|
@ -56,7 +57,8 @@ function this.EventTrigger(eventId, callBack)
|
|||
fightData = fdata,
|
||||
fightSeed = fseed,
|
||||
fightType = BATTLE_SERVER_TYPE.StoryFight,
|
||||
maxRound = 20
|
||||
maxRound = 20,
|
||||
bg = FakeBattleNew[options[1]].BgName
|
||||
}
|
||||
local panel = UIManager.OpenPanel(UIName.GuideBattlePanel, testFightData, function()
|
||||
StoryManager.StoryJumpType(options[3])
|
||||
|
|
Loading…
Reference in New Issue