【首领来袭】相同关卡之谈出一次

dev_chengFeng
ZhangBiao 2021-02-26 14:26:10 +08:00
parent c1b73bdbd9
commit 5ea71bdeeb
2 changed files with 15 additions and 9 deletions

View File

@ -70,19 +70,24 @@ end
-- 打开,重新打开时回调 -- 打开,重新打开时回调
function BattleBossInfoPanel:OnShow() function BattleBossInfoPanel:OnShow()
PlayerPrefs.SetInt(PlayerManager.uid.."BattleBossShow"..FightPointPassManager.curOpenFight,1)
local data = ConfigManager.GetConfigData(ConfigName.MainLevelConfig,FightPointPassManager.curOpenFight)
local heroData = ConfigManager.GetConfigData(ConfigName.HeroConfig,data.BossPreview)
local bossData = ConfigManager.GetConfigDataByKey(ConfigName.MainLevelBossConfig,"HeroId",data.BossPreview)
local time = bossData.Time/1000
self.timer1 = Timer.New(function () self.timer1 = Timer.New(function ()
PlayUIAnim(self.ani1) PlayUIAnim(self.ani1)
PlayUIAnim(self.ani2) PlayUIAnim(self.ani2)
Timer.New(function () Timer.New(function ()
self:ClosePanel() self:ClosePanel()
end,0.7):Start() end,0.7):Start()
end,10) end,time)
self.timer1:Start() self.timer1:Start()
local data = ConfigManager.GetConfigData(ConfigName.MainLevelConfig,FightPointPassManager.curOpenFight)
local heroData = ConfigManager.GetConfigData(ConfigName.HeroConfig,data.BossPreview)
local bossData = ConfigManager.GetConfigDataByKey(ConfigName.MainLevelBossConfig,"HeroId",data.BossPreview)
--Pos --Pos
local GetcurLanguage = 0 local GetcurLanguage = 0--为后期多语言
self.nameZh.text = heroData.ReadingName self.nameZh.text = heroData.ReadingName
self.posTextZh.text = heroData.HeroLocation self.posTextZh.text = heroData.HeroLocation
self.nameOther.text = heroData.ReadingName self.nameOther.text = heroData.ReadingName
@ -110,9 +115,9 @@ function BattleBossInfoPanel:OnShow()
self.talismanText.text = bossData.Treasuretips self.talismanText.text = bossData.Treasuretips
--bg --bg
self.Img1:DOShakeAnchorPos(10, Vector2.New(10, 10), 1, 50, false, false) self.Img1:DOShakeAnchorPos(time, Vector2.New(10, 10), 1, 50, false, false)
self.Img2:DOShakeAnchorPos(10, Vector2.New(10, 10), 1, 50, false, false) self.Img2:DOShakeAnchorPos(time, Vector2.New(10, 10), 1, 50, false, false)
self.Img3:DOShakeAnchorPos(10, Vector2.New(10, 10), 1, 50, false, false) self.Img3:DOShakeAnchorPos(time, Vector2.New(10, 10), 1, 50, false, false)
end end

View File

@ -556,8 +556,9 @@ function this.BattleOrderChange(order)
end end
--判断是否需要显示boss信息 --判断是否需要显示boss信息
local data = ConfigManager.GetConfigData(ConfigName.MainLevelConfig,FightPointPassManager.curOpenFight) local data = ConfigManager.GetConfigData(ConfigName.MainLevelConfig,FightPointPassManager.curOpenFight)
local key = PlayerPrefs.GetInt(PlayerManager.uid.."BattleBossShow"..FightPointPassManager.curOpenFight)
Timer.New(function () Timer.New(function ()
if data.BossPreview and data.BossPreview > 0 then if data.BossPreview and data.BossPreview > 0 and key == 0 then
UIManager.OpenPanel(UIName.BattleBossInfoPanel,function () UIManager.OpenPanel(UIName.BattleBossInfoPanel,function ()
func() func()
end) end)