文字修改
parent
abed1e0e9d
commit
b4e7faa04c
|
@ -38,6 +38,7 @@ function this:InitComponent(gameObject)
|
|||
this.box1 = Util.GetGameObject(this.Content, "scroll/box")
|
||||
this.box2 = Util.GetGameObject(this.Content, "scroll2/box")
|
||||
this.tip = Util.GetGameObject(this.Content, "Text"):GetComponent("Text")
|
||||
this.tip3 = Util.GetGameObject(this.Content, "tip3"):GetComponent("Text")
|
||||
this.taskList = {}
|
||||
end
|
||||
|
||||
|
@ -77,6 +78,7 @@ function this:OnShow(_parent,...)
|
|||
local temp = {...}
|
||||
curType = temp[1]
|
||||
local extraType = temp[2]
|
||||
this.tip3.text = "解锁秘宝"
|
||||
if curType == 1 then
|
||||
rewardStateData = TreasureOfHeavenManger.rewardStateData
|
||||
rewardData = TreasureOfHeavenManger.GetAllRewardData()
|
||||
|
@ -107,23 +109,8 @@ function this:OnShow(_parent,...)
|
|||
this.dealBtnText.gameObject:SetActive(true)
|
||||
local config = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig,type[curType].id)
|
||||
this.dealBtnText.text = MoneyUtil.GetMoneyUnitNameWithMoney(config.Price)
|
||||
elseif curType == 5 then --
|
||||
rewardData,rewardData1 = RecruitTreasureManager.GetAllRewardData(extraType,type[curType].id)
|
||||
this:showRewardWuJin(rewardData,rewardData1)
|
||||
this.tip.text = "·激活<color=#45953B>进阶专属奖励</color>"
|
||||
this.dealBtnIma.gameObject:SetActive(false)
|
||||
this.dealBtnText.gameObject:SetActive(true)
|
||||
local config = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig,type[curType].id)
|
||||
this.dealBtnText.text = MoneyUtil.GetMoneyUnitNameWithMoney(config.Price)
|
||||
elseif curType == 6 then --
|
||||
rewardData,rewardData1 = RecruitTreasureManager.GetAllRewardData(extraType,type[curType].id)
|
||||
this:showRewardWuJin(rewardData,rewardData1)
|
||||
this.tip.text = "·激活<color=#45953B>进阶专属奖励</color>"
|
||||
this.dealBtnIma.gameObject:SetActive(false)
|
||||
this.dealBtnText.gameObject:SetActive(true)
|
||||
local config = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig,type[curType].id)
|
||||
this.dealBtnText.text = MoneyUtil.GetMoneyUnitNameWithMoney(config.Price)
|
||||
elseif curType == 7 then --
|
||||
elseif curType == 5 or curType == 6 or curType == 7 then --
|
||||
this.tip3.text = "解锁基金"
|
||||
rewardData,rewardData1 = RecruitTreasureManager.GetAllRewardData(extraType,type[curType].id)
|
||||
this:showRewardWuJin(rewardData,rewardData1)
|
||||
this.tip.text = "·激活<color=#45953B>进阶专属奖励</color>"
|
||||
|
|
|
@ -166,7 +166,7 @@ end
|
|||
function RecruitTreasurePanel:topBar()
|
||||
--设置礼包购买按钮状态
|
||||
this.buyBtn:GetComponent("Button").interactable = not this.isBuy
|
||||
this.Text1.text = not this.isBuy and "激活秘宝" or "已激活"
|
||||
this.Text1.text = not this.isBuy and "激活基金" or "已激活"
|
||||
Util.AddOnceClick(this.buyBtn,function()
|
||||
UIManager.OpenPanel(UIName.GeneralPopup,GENERAL_POPUP_TYPE.HeavenUnlockExtraRewardPanel,configs[curPage].ShopData[1][2],configs[curPage].ActId)
|
||||
end)
|
||||
|
|
Loading…
Reference in New Issue