【家园】特权时间显示跳帧

dev_chengFeng
ZhangBiao 2022-01-10 18:22:20 +08:00
parent 893a8dd10b
commit c40be4411d
1 changed files with 8 additions and 1 deletions

View File

@ -70,9 +70,16 @@ function this:Refresh()
end
local leftTime = data.endTime - GetTimeStamp()
this.leftTime.text = string.format("剩余%s天",TimeToD(leftTime))
if leftTime <= 86400 then
this.leftTime.text = string.format("剩余:",TimeToFelaxible(leftTime))
end
this.timer = Timer.New(function ()
leftTime = leftTime - 1
this.leftTime.text = string.format("剩余%s天",TimeToD(leftTime))
if leftTime <= 86400 then
this.leftTime.text = string.format("剩余:",TimeToFelaxible(leftTime))
else
this.leftTime.text = string.format("剩余%s天",TimeToD(leftTime))
end
end,1,-1)
this.timer:Start()
end