【每日登陆领奖】背景显示不全,多次点击后各奖励详情不再弹窗 bug 修复
parent
03e0e73665
commit
10132cc75f
|
@ -234,7 +234,10 @@ function EightDayGiftPanel:SetSingleReward(item,i)
|
|||
|
||||
--点击奖励时更改背景
|
||||
Util.AddOnceClick(event,function()
|
||||
poolManager:UnLoadLive(bgName, Live)
|
||||
if Live then
|
||||
poolManager:UnLoadLive(bgName, Live)
|
||||
Live = nil
|
||||
end
|
||||
this:SetBg(i)
|
||||
if ItemConfig[EightDayRewardConfig[i].Reward[1][1]].ItemType == 13 then
|
||||
UIManager.OpenPanel(UIName.SoulPrintPopUp,3,nil,EightDayRewardConfig[i].Reward[1][1],nil,nil)
|
||||
|
@ -245,7 +248,10 @@ function EightDayGiftPanel:SetSingleReward(item,i)
|
|||
|
||||
end)
|
||||
Util.AddOnceClick(reward,function()
|
||||
poolManager:UnLoadLive(bgName, Live)
|
||||
if Live then
|
||||
poolManager:UnLoadLive(bgName, Live)
|
||||
Live = nil
|
||||
end
|
||||
this:SetBg(i)
|
||||
end)
|
||||
|
||||
|
@ -261,7 +267,10 @@ function EightDayGiftPanel:SetRemainTime(day,i)
|
|||
local t = CalculateSecondsNowTo_N_OClock(5)
|
||||
if t-1 < 0 then
|
||||
Timer.New(function()
|
||||
poolManager:UnLoadLive(bgName, Live)
|
||||
if Live then
|
||||
poolManager:UnLoadLive(bgName, Live)
|
||||
Live = nil
|
||||
end
|
||||
this:Refresh()
|
||||
end, 1, 1, true):Start()
|
||||
end
|
||||
|
@ -289,7 +298,10 @@ end
|
|||
|
||||
--界面关闭时调用(用于子类重写)
|
||||
function EightDayGiftPanel:OnClose()
|
||||
poolManager:UnLoadLive(bgName, Live)
|
||||
if Live then
|
||||
poolManager:UnLoadLive(bgName, Live)
|
||||
Live = nil
|
||||
end
|
||||
end
|
||||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
|
|
Loading…
Reference in New Issue