返回主城打开竞技试炼

dev_chengFeng
jiaoyangna 2021-12-20 21:59:33 +08:00
parent a1e4acd488
commit a19e1d1b7d
3 changed files with 11 additions and 1 deletions

View File

@ -58,6 +58,12 @@ function ArenaTypePanel:BindEvent()
end)
Util.AddClick(this.btnBack, function()
PlaySoundWithoutClick(SoundConfig.Sound_UICancel)
if PlayerPrefs.HasKey("ArenaTypePanel"..PlayerManager.uid) then
DynamicActivityManager.isopenJingjishilian = false
else
PlayerPrefs.SetInt("ArenaTypePanel"..PlayerManager.uid,1)
DynamicActivityManager.isopenJingjishilian = true
end
this:ClosePanel()
end)

View File

@ -16,7 +16,7 @@ this.selectIndex2 = {dataType = 0,goodsId = {}}
this.NiuQiIndex = 1
this.Index = 0--成长礼包需要的index
this.curLevel = 0--当前声望等级
this.isopenJingjishilian = false
this.TaiChuMiJuanData = {}
function this.SetTaiChuMiJuanData(msg,fun)
local datas

View File

@ -1191,6 +1191,10 @@ function this:OnShow()
addUpDateNum = addUpDateNum + 1
end
YuJianXingManager.MakeRequest()
if DynamicActivityManager.isopenJingjishilian then
UIManager.OpenPanel(UIName.ArenaTrialPanel)
end
end
--