从任务跳转去战令,如果没有购买一定要弹出购买界面
This commit is contained in:
parent
003d962422
commit
e99af16f39
@ -37,6 +37,10 @@ function DailyTaskCell:init()
|
||||
self.lockBg = uiMap["task_cell.lock_bg"]
|
||||
local lockBtn = uiMap["task_cell.lock_node.lock_btn.btn"]
|
||||
lockBtn:addClickListener(function()
|
||||
if DataManager.BountyData:getIsOpen() then
|
||||
DataManager.BountyData:clearPopBought()
|
||||
ModuleManager.BountyManager:showBountyMainUI()
|
||||
end
|
||||
end)
|
||||
local lockBtnTx = uiMap["task_cell.lock_node.lock_btn.btn.text"]
|
||||
lockBtnTx:setText(I18N:getGlobalText(I18N.GlobalConst.STR_UNLOCK))
|
||||
|
||||
@ -335,6 +335,10 @@ function BountyData:markPopBought()
|
||||
LocalData:setBountyPopTime(self.popBoughtTime)
|
||||
end
|
||||
|
||||
function BountyData:clearPopBought()
|
||||
self.popBoughtTime = 0
|
||||
end
|
||||
|
||||
function BountyData:getRechargeId(advanced)
|
||||
local cfg = ConfigManager:getConfig("act_gift")
|
||||
local id = self:getGiftId(advanced)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user