修改破阵诛仙子活动开启的条件判断
parent
18ec0b7b20
commit
c68cec489a
|
|
@ -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可用性检测
|
||||
|
|
|
|||
Loading…
Reference in New Issue