山河设计图第一次打开修改
parent
bfd04decaa
commit
8badc5fcda
|
@ -382,7 +382,16 @@ function CarbonsPanel:BtnClick(id)
|
||||||
elseif id == FUNCTION_OPEN_TYPE.FIGHTLEVEL then
|
elseif id == FUNCTION_OPEN_TYPE.FIGHTLEVEL then
|
||||||
if ActTimeCtrlManager.SingleFuncState(id) then
|
if ActTimeCtrlManager.SingleFuncState(id) then
|
||||||
FightLevelManager.curSelect = 0
|
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
|
else
|
||||||
PopupTipPanel.ShowTip(ActTimeCtrlManager.SystemOpenTip(id))
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.SystemOpenTip(id))
|
||||||
end
|
end
|
||||||
|
|
|
@ -84,6 +84,7 @@ function FightLevelChapterPanel:OnOpen()
|
||||||
-- LogYellow(bit.band(2,3))
|
-- LogYellow(bit.band(2,3))
|
||||||
-- LogYellow(bit.band(4,3))
|
-- LogYellow(bit.band(4,3))
|
||||||
-- SoundManager.PlaySound(SoundConfig.Sound_WorldMap)
|
-- SoundManager.PlaySound(SoundConfig.Sound_WorldMap)
|
||||||
|
PlayerPrefs.SetInt(PlayerManager.uid.."openFightLevelTime",1)
|
||||||
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Main })
|
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Main })
|
||||||
-- SoundManager.PlayMusic(SoundConfig.BGM_Main)
|
-- SoundManager.PlayMusic(SoundConfig.BGM_Main)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue