罗浮争锋显示倒计时修改

dev_fengTi_And
PC-202302260912\Administrator 2023-07-10 18:49:38 +08:00
parent 22122de56a
commit daacab6cbe
1 changed files with 34 additions and 28 deletions

View File

@ -254,36 +254,42 @@ function this.TimeUpdate()
local isOpen = ActTimeCtrlManager.IsSwitchOpen(FUNCTION_OPEN_TYPE.JumpServer_HightLadder) local isOpen = ActTimeCtrlManager.IsSwitchOpen(FUNCTION_OPEN_TYPE.JumpServer_HightLadder)
if isOpen then if isOpen then
local isActive = ArenaTopMatchManager.IsTopMatchActive() -- local isActive = ArenaTopMatchManager.IsTopMatchActive()
local startTime, endTime = ArenaTopMatchManager.GetTopMatchTime() -- local startTime, endTime = ArenaTopMatchManager.GetTopMatchTime()
if isActive then -- if isActive then
local leftTime = endTime - GetTimeStamp() -- local leftTime = endTime - GetTimeStamp()
if leftTime <= 0 then -- if leftTime <= 0 then
this.RefreshTopMatchShow() -- this.RefreshTopMatchShow()
end -- end
this.TopMatch_SeasonTime.text = string.format(Language[10090], TimeToHMS(leftTime)) -- this.TopMatch_SeasonTime.text = string.format(Language[10090], TimeToHMS(leftTime))
else -- else
if startTime then -- if startTime then
local leftTime = startTime - GetTimeStamp() -- local leftTime = startTime - GetTimeStamp()
if leftTime <= 0 then -- if leftTime <= 0 then
this.RefreshTopMatchShow() -- this.RefreshTopMatchShow()
this.TopMatch_SeasonTime.text = "" -- this.TopMatch_SeasonTime.text = ""
else -- else
this.TopMatch_SeasonTime.text = string.format(Language[10091], TimeToHMS(leftTime)) -- this.TopMatch_SeasonTime.text = string.format(Language[10091], TimeToHMS(leftTime))
end -- end
else -- else
this.RefreshTopMatchShow() -- this.RefreshTopMatchShow()
this.TopMatch_SeasonTime.text = "" -- this.TopMatch_SeasonTime.text = ""
end -- end
-- end
local leftTime=JumpServerManager.GetHightLadderDataEndTime() - GetTimeStamp()
if leftTime <= 0 then
this.RefreshTopMatchShow()
end end
this.TopMatch_SeasonTime.text = string.format(Language[10090], TimeToHMS(leftTime))
else else
local startTime, endTime = ArenaTopMatchManager.GetTopMatchTime() -- local startTime, endTime = ArenaTopMatchManager.GetTopMatchTime()
if startTime then -- if startTime then
local leftTime = startTime - GetTimeStamp() -- local leftTime = startTime - GetTimeStamp()
this.TopMatch_Lock_Time.text = string.format("(即将解锁:%s", TimeToHMS(leftTime)) -- this.TopMatch_Lock_Time.text = string.format("(即将解锁:%s", TimeToHMS(leftTime))
else -- else
this.TopMatch_Lock_Time.text = "" -- this.TopMatch_Lock_Time.text = ""
end -- end
end end
end end