山河设计图第一次打开修改

wangzhenxing 2022-11-11 15:33:43 +08:00
parent bfd04decaa
commit 8badc5fcda
2 changed files with 11 additions and 1 deletions

View File

@ -382,7 +382,16 @@ function CarbonsPanel:BtnClick(id)
elseif id == FUNCTION_OPEN_TYPE.FIGHTLEVEL then
if ActTimeCtrlManager.SingleFuncState(id) then
FightLevelManager.curSelect = 0
UIManager.OpenPanel(UIName.FightLevelChapterPanel)
local time=PlayerPrefs.GetInt(PlayerManager.uid.."openFightLevelTime")
if time==0 then
NetManager.HardStageRequest(function()
UIManager.OpenPanel(UIName.FightLevelChapterPanel)
end)
else
UIManager.OpenPanel(UIName.FightLevelChapterPanel)
end
else
PopupTipPanel.ShowTip(ActTimeCtrlManager.SystemOpenTip(id))
end

View File

@ -84,6 +84,7 @@ function FightLevelChapterPanel:OnOpen()
-- LogYellow(bit.band(2,3))
-- LogYellow(bit.band(4,3))
-- SoundManager.PlaySound(SoundConfig.Sound_WorldMap)
PlayerPrefs.SetInt(PlayerManager.uid.."openFightLevelTime",1)
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Main })
-- SoundManager.PlayMusic(SoundConfig.BGM_Main)
end