【车迟斗法】副本页签红点刷新不及时 修改

(cherry picked from commit ecbcdc2614)
dev_chengFeng
ZhangBiao 2021-01-11 14:54:32 +08:00
parent 4d210b9297
commit c1c057176a
1 changed files with 18 additions and 0 deletions

View File

@ -147,6 +147,24 @@ function this:RefreshBtnState()
self:InitNewOpenShow()
self:CheckMainCityNew()
self:SetAnimState()
self:RedPointTimer()
end
function this:RedPointTimer()
if this.timer then
this.timer:Stop()
this.timer = nil
end
local t = 0
this.timer = Timer.New(function ()
t = t + 1
if t%5 == 1 then
if (PrivilegeManager.GetPrivilegeRemainValue(PRIVILEGE_TYPE.GUILD_CAR_DELEAY_CHALLENGE) > 0 or PrivilegeManager.GetPrivilegeRemainValue(PRIVILEGE_TYPE.GUILD_CAR_DELEAY_LOOT) > 0) then--车迟的红点
CheckRedPointStatus(RedPointType.LegendExplore)
end
end
end,1,-1,true)
this.timer:Start()
end
-- 检测是否开启