qinglong commit
parent
d43d4970e7
commit
9bc710ce58
|
@ -132,8 +132,14 @@ function this.TabAdapter(tab, index, status)
|
||||||
Util.GetGameObject(tab,"Image"):GetComponent("Image").sprite = Util.LoadSprite(_TabData[index][status])
|
Util.GetGameObject(tab,"Image"):GetComponent("Image").sprite = Util.LoadSprite(_TabData[index][status])
|
||||||
tabLab:GetComponent("Text").text = _TabData[index].name
|
tabLab:GetComponent("Text").text = _TabData[index].name
|
||||||
tabLab:GetComponent("Text").color = _TabFontColor[status]
|
tabLab:GetComponent("Text").color = _TabFontColor[status]
|
||||||
if _TabData[index].type ~= -1 and not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.SUNLONG) then
|
if _TabData[index].type ~= -1 then
|
||||||
tab.gameObject:SetActive(false)
|
if ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.SUNLONG) and ActivityGiftManager.GetActivityOpenStatus( _TabData[index].type) then
|
||||||
|
tab.gameObject:SetActive(true)
|
||||||
|
else
|
||||||
|
tab.gameObject:SetActive(false)
|
||||||
|
end
|
||||||
|
else
|
||||||
|
tab.gameObject:SetActive(true)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue