【百宝斋】竞技场赛季过渡以后,去百宝斋里点击下方大页签可以正常进入逐胜商店并购买,但是切换 逐胜/公会,这种小页签 就提示赛季已结束不让进
parent
cd984427c1
commit
96fb520ace
|
|
@ -219,7 +219,11 @@ function this.OnPageTabChange(index, lastIndex)
|
||||||
-- 默认打开第一个商店
|
-- 默认打开第一个商店
|
||||||
if this.ShopTabCtrl then
|
if this.ShopTabCtrl then
|
||||||
this._CurShopIndex = nil
|
this._CurShopIndex = nil
|
||||||
|
if this._ChooseShopIndex then
|
||||||
this.ShopTabCtrl:ChangeTab(this._ChooseShopIndex or 1)
|
this.ShopTabCtrl:ChangeTab(this._ChooseShopIndex or 1)
|
||||||
|
else
|
||||||
|
this.ShopTabCtrl:ChangeTab(this.GetAvailableChildShopIndex() or 1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 二级页签只有一个的时候不显示
|
-- 二级页签只有一个的时候不显示
|
||||||
|
|
@ -230,6 +234,16 @@ function this.OnPageTabChange(index, lastIndex)
|
||||||
this.tabbox2Content.transform.localPosition = Vector3.New(contentWidth/2, curPos.y, curPos.z)
|
this.tabbox2Content.transform.localPosition = Vector3.New(contentWidth/2, curPos.y, curPos.z)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- 获取当前大页签下可用的小页签的序号
|
||||||
|
function this.GetAvailableChildShopIndex()
|
||||||
|
for index, shopType in ipairs(this._MainShopTypeList) do
|
||||||
|
local isActive, errorTip = ShopManager.IsActive(shopType)
|
||||||
|
if isActive then
|
||||||
|
return index
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
----==========================二级页签相关===========================================
|
----==========================二级页签相关===========================================
|
||||||
-- tab按钮自定义显示设置
|
-- tab按钮自定义显示设置
|
||||||
function this.ShopTabAdapter(tab, index, status)
|
function this.ShopTabAdapter(tab, index, status)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue