【十五日】

(cherry picked from commit 0e41801daf)
dev_chengFeng
ZhangBiao 2021-04-12 15:04:33 +08:00
parent 276e0129fe
commit e986b8d956
2 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,7 @@ function FifteenDayGift:OnShow()
end end
function FifteenDayGift:Refresh() function FifteenDayGift:Refresh()
LogPink("刷新")
if UIManager.IsOpen(UIName.FightAreaRewardFullPopup) then if UIManager.IsOpen(UIName.FightAreaRewardFullPopup) then
UIManager.ClosePanel(UIName.FightAreaRewardFullPopup) UIManager.ClosePanel(UIName.FightAreaRewardFullPopup)
end end
@ -189,6 +190,7 @@ function FifteenDayGift:SetSingleReward(sData,go,index)
if time <= 0 then if time <= 0 then
self.timer:Stop() self.timer:Stop()
self.timer = nil self.timer = nil
LogPink("时间没了")
FifteenDayGift:Refresh() FifteenDayGift:Refresh()
end end
name.text = TimeToFelaxible(time) name.text = TimeToFelaxible(time)

View File

@ -1335,6 +1335,7 @@ function this.RefreshEightGiftPreview()
this.sgBtn:SetActive(false) this.sgBtn:SetActive(false)
end end
--十五日 --十五日
LogPink("ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.FifteenDayGift):"..tostring(ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.FifteenDayGift)))
if ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.FifteenDayGift) then if ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.FifteenDayGift) then
this.fgBtn:SetActive(true) this.fgBtn:SetActive(true)
this.rpFifteenDayEffect:SetActive(true) this.rpFifteenDayEffect:SetActive(true)