parent
415128191c
commit
beb5b9902a
|
|
@ -11,7 +11,10 @@ local _TabData = {
|
||||||
[1] = { default = "X1_tongyong_fenlan_weixuanzhong_02", select = "X1_tongyong_fenlan_yixuanzhong_02", name = GetLanguageStrById(12523) },
|
[1] = { default = "X1_tongyong_fenlan_weixuanzhong_02", select = "X1_tongyong_fenlan_yixuanzhong_02", name = GetLanguageStrById(12523) },
|
||||||
[2] = { default = "X1_tongyong_fenlan_weixuanzhong_02", select = "X1_tongyong_fenlan_yixuanzhong_02", name = GetLanguageStrById(12524) },
|
[2] = { default = "X1_tongyong_fenlan_weixuanzhong_02", select = "X1_tongyong_fenlan_yixuanzhong_02", name = GetLanguageStrById(12524) },
|
||||||
}
|
}
|
||||||
|
local _TabData2 = {
|
||||||
|
[1] = { default = "X1_tongyong_fenlan_weixuanzhong_02", select = "X1_tongyong_fenlan_yixuanzhong_02", name = GetLanguageStrById(12523) },
|
||||||
|
--[2] = { default = "X1_tongyong_fenlan_weixuanzhong_02", select = "X1_tongyong_fenlan_yixuanzhong_02", name = GetLanguageStrById(12524) },
|
||||||
|
}
|
||||||
--初始化组件(用于子类重写)
|
--初始化组件(用于子类重写)
|
||||||
function ClimbTowerRewardPopup:InitComponent()
|
function ClimbTowerRewardPopup:InitComponent()
|
||||||
this.BackMask = Util.GetGameObject(self.gameObject, "BackMask")
|
this.BackMask = Util.GetGameObject(self.gameObject, "BackMask")
|
||||||
|
|
@ -112,8 +115,12 @@ function ClimbTowerRewardPopup:OnShow()
|
||||||
this.configDataVip = ClimbTowerManager.GetChallengeConfigVipData()
|
this.configDataVip = ClimbTowerManager.GetChallengeConfigVipData()
|
||||||
this.curTier = ClimbTowerManager.fightId - 1 --< 通过层数
|
this.curTier = ClimbTowerManager.fightId - 1 --< 通过层数
|
||||||
_tabIdx = 1
|
_tabIdx = 1
|
||||||
|
local channelConfig = GetChannelConfig()
|
||||||
|
if channelConfig.Button_PlayerSet_Exchange then
|
||||||
this.tabCtrl:Init(this.tabBox, _TabData)
|
this.tabCtrl:Init(this.tabBox, _TabData)
|
||||||
|
else
|
||||||
|
this.tabCtrl:Init(this.tabBox, _TabData2)
|
||||||
|
end
|
||||||
ClimbTowerRewardPopup.ChangeTab(_tabIdx)
|
ClimbTowerRewardPopup.ChangeTab(_tabIdx)
|
||||||
|
|
||||||
this.Tier:GetComponent("Text").text = tostring(this.curTier)
|
this.Tier:GetComponent("Text").text = tostring(this.curTier)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue