罗浮争锋显示倒计时修改

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
-- 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 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 -- local startTime, endTime = ArenaTopMatchManager.GetTopMatchTime()
local leftTime = startTime - GetTimeStamp() -- if startTime then
if leftTime <= 0 then -- local leftTime = startTime - GetTimeStamp()
this.RefreshTopMatchShow() -- this.TopMatch_Lock_Time.text = string.format("(即将解锁:%s", TimeToHMS(leftTime))
this.TopMatch_SeasonTime.text = "" -- else
else -- this.TopMatch_Lock_Time.text = ""
this.TopMatch_SeasonTime.text = string.format(Language[10091], TimeToHMS(leftTime)) -- end
end
else
this.RefreshTopMatchShow()
this.TopMatch_SeasonTime.text = ""
end
end
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
end end
end end