修改破阵诛仙子活动开启的条件判断

jiaoyangna 2020-09-10 11:03:47 +08:00
parent 18ec0b7b20
commit c68cec489a
1 changed files with 8 additions and 4 deletions

View File

@ -133,10 +133,14 @@ function this.PageTabAdapter(tab, index, status)
this.BindPageRedpot(index, redpot) this.BindPageRedpot(index, redpot)
end end
local id = ActivityGiftManager.IsActivityTypeOpen(tabs[index].ActType) local id = ActivityGiftManager.IsActivityTypeOpen(tabs[index].ActType)
if id and id > 0 then
if GlobalActConfig[id].ShowArt and GlobalActConfig[id].ShowArt > 0 then if GlobalActConfig[id].ShowArt and GlobalActConfig[id].ShowArt > 0 then
tab:SetActive(GlobalActConfig[id].ShowArt == index) tab:SetActive(GlobalActConfig[id].ShowArt == index)
else else
tab.gameObject:SetActive(ActivityGiftManager.GetActivityOpenStatus(tabs[index].ActType)) tab.gameObject:SetActive(true)
end
else
tab.gameObject:SetActive(false)
end end
end end