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

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,11 +133,15 @@ function this.PageTabAdapter(tab, index, status)
this.BindPageRedpot(index, redpot)
end
local id = ActivityGiftManager.IsActivityTypeOpen(tabs[index].ActType)
if GlobalActConfig[id].ShowArt and GlobalActConfig[id].ShowArt > 0 then
tab:SetActive(GlobalActConfig[id].ShowArt == index)
if id and id > 0 then
if GlobalActConfig[id].ShowArt and GlobalActConfig[id].ShowArt > 0 then
tab:SetActive(GlobalActConfig[id].ShowArt == index)
else
tab.gameObject:SetActive(true)
end
else
tab.gameObject:SetActive(ActivityGiftManager.GetActivityOpenStatus(tabs[index].ActType))
end
tab.gameObject:SetActive(false)
end
end
-- tab可用性检测