巅峰赛按钮当日五点开始显示

dev_chengFeng
gaoxin 2020-08-28 01:24:32 +08:00
parent 1452da3489
commit 5d03b4fea8
1 changed files with 7 additions and 2 deletions

View File

@ -1408,10 +1408,15 @@ function this.TimeFormat()
if not isOpen or not baseInfo or not baseInfo.battleStage or baseInfo.battleStage == TOP_MATCH_STAGE.OVER then
SetTopMatchActive(false)
elseif baseInfo.battleStage == TOP_MATCH_STAGE.CLOSE then
SetTopMatchActive(true)
local startTime = ArenaTopMatchManager.GetTopMatchTime()
local tempTime = startTime - PlayerManager.serverTime
this.topMatchTime.text = "距开始\n"..TimeToHMS(tempTime)
-- 当日五点开始显示
if tempTime < 16 * 60 * 60 then
SetTopMatchActive(true)
this.topMatchTime.text = "距开始\n"..TimeToHMS(tempTime)
else
SetTopMatchActive(false)
end
else
SetTopMatchActive(true)
this.topMatchTime.text = "鏖战中"