战令界面
This commit is contained in:
parent
a225025d02
commit
40f09ed39f
@ -470,6 +470,13 @@ function GFunc.getTimeStrWithHMS2(time)
|
||||
return I18N:getGlobalText(I18N.GlobalConst.TIME_STR_HMS, h, m, s)
|
||||
end
|
||||
|
||||
function GFunc.getTimeStrWithDHM(time)
|
||||
local d = math.floor(time/86400)
|
||||
local h = math.floor((time%86400)/3600)
|
||||
local m = math.floor((time%3600)/60)
|
||||
return I18N:getGlobalText(I18N.GlobalConst.TIME_STR_DHM, d, h, m)
|
||||
end
|
||||
|
||||
function GFunc.getTimeStrWithDH2(time)
|
||||
local d = math.floor(time/86400)
|
||||
local h = math.floor((time%86400)/3600)
|
||||
|
||||
@ -103,9 +103,9 @@ function BountyBuyUI:updateTime()
|
||||
return self:closeUI()
|
||||
end
|
||||
if remainTime > 86400 then
|
||||
self.timeTx:setText(I18N:getGlobalText(I18N.GlobalConst.REMAIN_TIME, GFunc.getTimeStrWithDH2(remainTime)))
|
||||
self.timeTx:setText(GFunc.getTimeStrWithDHM(remainTime))
|
||||
else
|
||||
self.timeTx:setText(I18N:getGlobalText(I18N.GlobalConst.REMAIN_TIME, GFunc.getTimeStrWithHMS2(remainTime)))
|
||||
self.timeTx:setText(GFunc.getTimeStrWithHMS2(remainTime))
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@ -446,7 +446,7 @@ function BountyMainUI:updateTime()
|
||||
self.timeTx:setText(GFunc.getTimeStr(remainTime))
|
||||
if not self.adjustTimeUI then
|
||||
self.adjustTimeUI = true
|
||||
GFunc.centerImgAndTx(self.timeIcon, self.timeTx)
|
||||
GFunc.centerImgAndTx(self.timeIcon, self.timeTx, 4)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user