fix
This commit is contained in:
parent
a68c4c79f2
commit
7b0f71065f
@ -45,6 +45,7 @@ end
|
||||
function MopUpUI:_display()
|
||||
local uiMap = self.root:genAllChildren()
|
||||
self.btnOk = uiMap["mop_up_ui.bg.ok_btn"]
|
||||
self.btnClose = uiMap["mop_up_ui.bg.close_btn"]
|
||||
|
||||
uiMap["mop_up_ui.bg.title_text"]:setText(self.customtitleTx or I18N:getGlobalText(I18N.GlobalConst.MOP_UP_DESC_1))
|
||||
uiMap["mop_up_ui.bg.tx_none"]:setText(I18N:getGlobalText(I18N.GlobalConst.GET_REWARDS_DESC))
|
||||
@ -63,8 +64,7 @@ function MopUpUI:_display()
|
||||
end
|
||||
|
||||
function MopUpUI:_addListeners()
|
||||
local uiMap = self.root:genAllChildren()
|
||||
uiMap["mop_up_ui.bg.close_btn"]:addClickListener(function()
|
||||
self.btnClose:addClickListener(function()
|
||||
self:closeUI()
|
||||
end)
|
||||
|
||||
@ -137,6 +137,7 @@ function MopUpUI:showRewardAppearAnim(idx, cell)
|
||||
|
||||
cell:setTouchEnable(false)
|
||||
self.btnOk:setTouchEnable(false)
|
||||
self.btnClose:setTouchEnable(false)
|
||||
local animRewardAppear = selfObj:createBindTweenSequence()
|
||||
animRewardAppear:Insert(0, canvasGroup:DOFade(0, 0))
|
||||
animRewardAppear:Insert(0, selfObj:getTransform():DOScale(scaleX * 0.6, 0))
|
||||
@ -148,6 +149,7 @@ function MopUpUI:showRewardAppearAnim(idx, cell)
|
||||
cell:setTouchEnable(true)
|
||||
self:performWithDelayGlobal(function()
|
||||
self.btnOk:setTouchEnable(true)
|
||||
self.btnClose:setTouchEnable(true)
|
||||
end, 0.5)
|
||||
end)
|
||||
return animRewardAppear
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user