调整字号计算字体高度的公式
This commit is contained in:
@@ -406,7 +406,7 @@ function scene.draw()
|
|||||||
setColor(N<3 and COLOR.black or COLOR.W)
|
setColor(N<3 and COLOR.black or COLOR.W)
|
||||||
local fontSize=tileFont[N]
|
local fontSize=tileFont[N]
|
||||||
setFont(fontSize)
|
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
|
||||||
else
|
else
|
||||||
local c=tileColor[N]
|
local c=tileColor[N]
|
||||||
@@ -416,7 +416,7 @@ function scene.draw()
|
|||||||
setColor(c,c,c,prevSpawnTime)
|
setColor(c,c,c,prevSpawnTime)
|
||||||
local fontSize=tileFont[N]
|
local fontSize=tileFont[N]
|
||||||
setFont(fontSize)
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -290,7 +290,7 @@ function scene.draw()
|
|||||||
local s=#t
|
local s=#t
|
||||||
local f=int((30-s*.4)/5)*5
|
local f=int((30-s*.4)/5)*5
|
||||||
setFont(f)
|
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)
|
setFont(10)
|
||||||
_=L[i].date
|
_=L[i].date
|
||||||
if _ then gc.print(_,1155,284+25*i)end
|
if _ then gc.print(_,1155,284+25*i)end
|
||||||
|
|||||||
Reference in New Issue
Block a user