连续快速扫荡显示fix

This commit is contained in:
Fang 2023-08-21 14:37:53 +08:00
parent 381a4477bd
commit bff1f50a2b

View File

@ -44,6 +44,8 @@ end
function MopUpUI:_display()
local uiMap = self.root:genAllChildren()
self.btnOk = uiMap["mop_up_ui.bg.ok_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))
uiMap["mop_up_ui.bg.ok_btn.text"]:setText(I18N:getGlobalText(I18N.GlobalConst.MOP_UP_DESC_2))
@ -66,7 +68,7 @@ function MopUpUI:_addListeners()
self:closeUI()
end)
uiMap["mop_up_ui.bg.ok_btn"]:addClickListener(function()
self.btnOk:addClickListener(function()
self:closeUI()
if self.callback then
self.callback()
@ -134,6 +136,7 @@ function MopUpUI:showRewardAppearAnim(idx, cell)
local scaleX = selfObj:fastGetLocalScale()
cell:setTouchEnable(false)
self.btnOk:setTouchEnable(false)
local animRewardAppear = selfObj:createBindTweenSequence()
animRewardAppear:Insert(0, canvasGroup:DOFade(0, 0))
animRewardAppear:Insert(0, selfObj:getTransform():DOScale(scaleX * 0.6, 0))
@ -143,6 +146,7 @@ function MopUpUI:showRewardAppearAnim(idx, cell)
animRewardAppear:OnComplete(function()
animRewardAppear = nil
cell:setTouchEnable(true)
self.btnOk:setTouchEnable(true)
end)
return animRewardAppear
end