罗浮争锋显示倒计时修改
parent
22122de56a
commit
daacab6cbe
|
@ -254,36 +254,42 @@ function this.TimeUpdate()
|
|||
|
||||
local isOpen = ActTimeCtrlManager.IsSwitchOpen(FUNCTION_OPEN_TYPE.JumpServer_HightLadder)
|
||||
if isOpen then
|
||||
local isActive = ArenaTopMatchManager.IsTopMatchActive()
|
||||
local startTime, endTime = ArenaTopMatchManager.GetTopMatchTime()
|
||||
if isActive then
|
||||
local leftTime = endTime - GetTimeStamp()
|
||||
if leftTime <= 0 then
|
||||
this.RefreshTopMatchShow()
|
||||
end
|
||||
this.TopMatch_SeasonTime.text = string.format(Language[10090], TimeToHMS(leftTime))
|
||||
else
|
||||
if startTime then
|
||||
local leftTime = startTime - GetTimeStamp()
|
||||
if leftTime <= 0 then
|
||||
this.RefreshTopMatchShow()
|
||||
this.TopMatch_SeasonTime.text = ""
|
||||
else
|
||||
this.TopMatch_SeasonTime.text = string.format(Language[10091], TimeToHMS(leftTime))
|
||||
end
|
||||
else
|
||||
this.RefreshTopMatchShow()
|
||||
this.TopMatch_SeasonTime.text = ""
|
||||
end
|
||||
-- local isActive = ArenaTopMatchManager.IsTopMatchActive()
|
||||
-- local startTime, endTime = ArenaTopMatchManager.GetTopMatchTime()
|
||||
-- if isActive then
|
||||
-- local leftTime = endTime - GetTimeStamp()
|
||||
-- if leftTime <= 0 then
|
||||
-- this.RefreshTopMatchShow()
|
||||
-- end
|
||||
-- this.TopMatch_SeasonTime.text = string.format(Language[10090], TimeToHMS(leftTime))
|
||||
-- else
|
||||
-- if startTime then
|
||||
-- local leftTime = startTime - GetTimeStamp()
|
||||
-- if leftTime <= 0 then
|
||||
-- this.RefreshTopMatchShow()
|
||||
-- this.TopMatch_SeasonTime.text = ""
|
||||
-- else
|
||||
-- this.TopMatch_SeasonTime.text = string.format(Language[10091], TimeToHMS(leftTime))
|
||||
-- end
|
||||
-- else
|
||||
-- this.RefreshTopMatchShow()
|
||||
-- this.TopMatch_SeasonTime.text = ""
|
||||
-- end
|
||||
-- end
|
||||
local leftTime=JumpServerManager.GetHightLadderDataEndTime() - GetTimeStamp()
|
||||
if leftTime <= 0 then
|
||||
this.RefreshTopMatchShow()
|
||||
end
|
||||
this.TopMatch_SeasonTime.text = string.format(Language[10090], TimeToHMS(leftTime))
|
||||
else
|
||||
local startTime, endTime = ArenaTopMatchManager.GetTopMatchTime()
|
||||
if startTime then
|
||||
local leftTime = startTime - GetTimeStamp()
|
||||
this.TopMatch_Lock_Time.text = string.format("(即将解锁:%s)", TimeToHMS(leftTime))
|
||||
else
|
||||
this.TopMatch_Lock_Time.text = ""
|
||||
end
|
||||
-- local startTime, endTime = ArenaTopMatchManager.GetTopMatchTime()
|
||||
-- if startTime then
|
||||
-- local leftTime = startTime - GetTimeStamp()
|
||||
-- this.TopMatch_Lock_Time.text = string.format("(即将解锁:%s)", TimeToHMS(leftTime))
|
||||
-- else
|
||||
-- this.TopMatch_Lock_Time.text = ""
|
||||
-- end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue