setFont改为font模块,字体文件放到parts/fonts内,调整打包ci对应处

This commit is contained in:
MrZ626
2021-08-29 14:17:52 +08:00
parent 66dcfa40b0
commit 16c377427a
11 changed files with 91 additions and 87 deletions

View File

@@ -79,7 +79,7 @@ function MES.new(icon,str,time)
backColor=backColors[icon]or backColor
icon=mesIcon[icon]
end
local t=gc.newText(getFont(30),str)
local t=gc.newText(FONT.get(30),str)
local w=math.max(t:getWidth()+(icon and 45 or 5),200)+20
local h=math.max(t:getHeight(),46)+3
local L={w,h,