调整字号计算字体高度的公式

This commit is contained in:
MrZ626
2021-01-25 15:24:23 +08:00
parent a858ddbe67
commit 18988e690b
2 changed files with 3 additions and 3 deletions

View File

@@ -406,7 +406,7 @@ function scene.draw()
setColor(N<3 and COLOR.black or COLOR.W)
local fontSize=tileFont[N]
setFont(fontSize)
mStr(tileName[N],320+(x-.5)*160,40+(y-.5)*160-7*(fontSize/5+1)/2)
mStr(tileName[N],320+(x-.5)*160,40+(y-.5)*160-fontSize*.7)
end
else
local c=tileColor[N]
@@ -416,7 +416,7 @@ function scene.draw()
setColor(c,c,c,prevSpawnTime)
local fontSize=tileFont[N]
setFont(fontSize)
mStr(tileName[N],320+(x-.5)*160,40+(y-.5)*160-7*(fontSize/5+1)/2)
mStr(tileName[N],320+(x-.5)*160,40+(y-.5)*160-fontSize*.7)
end
end
end

View File

@@ -290,7 +290,7 @@ function scene.draw()
local s=#t
local f=int((30-s*.4)/5)*5
setFont(f)
gc.print(t,955,275+25*i+17-7*(f/5+1)*.5)
gc.print(t,955,275+25*i+17-f*.7)
setFont(10)
_=L[i].date
if _ then gc.print(_,1155,284+25*i)end