【车迟斗法】副本页签红点刷新不及时 修改
parent
8dbafbee93
commit
ecbcdc2614
|
@ -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
|
||||
|
||||
-- 检测是否开启
|
||||
|
|
Loading…
Reference in New Issue