移除barlow字体
This commit is contained in:
@@ -26,13 +26,20 @@ function FONT.reset()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function FONT.init(mainFont,secFont)
|
function FONT.init(mainFont,secFont)
|
||||||
|
assert(love.filesystem.getInfo(mainFont))
|
||||||
mainFont=love.filesystem.newFile(mainFont)
|
mainFont=love.filesystem.newFile(mainFont)
|
||||||
secFont=love.filesystem.newFile(secFont)
|
if secFont and love.filesystem.getInfo(secFont)then
|
||||||
|
secFont=love.filesystem.newFile(secFont)
|
||||||
|
else
|
||||||
|
secFont=false
|
||||||
|
end
|
||||||
function FONT.set(s)
|
function FONT.set(s)
|
||||||
if s~=currentFontSize then
|
if s~=currentFontSize then
|
||||||
if not fontCache[s]then
|
if not fontCache[s]then
|
||||||
fontCache[s]=gc.setNewFont(mainFont,s,'light',gc.getDPIScale()*SCR.k*2)
|
fontCache[s]=gc.setNewFont(mainFont,s,'light',gc.getDPIScale()*SCR.k*2)
|
||||||
fontCache[s]:setFallbacks(gc.setNewFont(secFont,s,'light',gc.getDPIScale()*SCR.k*2))
|
if secFont then
|
||||||
|
fontCache[s]:setFallbacks(gc.setNewFont(secFont,s,'light',gc.getDPIScale()*SCR.k*2))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
set(fontCache[s])
|
set(fontCache[s])
|
||||||
currentFontSize=s
|
currentFontSize=s
|
||||||
@@ -41,14 +48,18 @@ function FONT.init(mainFont,secFont)
|
|||||||
function FONT.get(s)
|
function FONT.get(s)
|
||||||
if not fontCache[s]then
|
if not fontCache[s]then
|
||||||
fontCache[s]=gc.setNewFont(mainFont,s,'light',gc.getDPIScale()*SCR.k*2)
|
fontCache[s]=gc.setNewFont(mainFont,s,'light',gc.getDPIScale()*SCR.k*2)
|
||||||
fontCache[s]:setFallbacks(gc.setNewFont(secFont,s,'light',gc.getDPIScale()*SCR.k*2))
|
if secFont then
|
||||||
|
fontCache[s]:setFallbacks(gc.setNewFont(secFont,s,'light',gc.getDPIScale()*SCR.k*2))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return fontCache[s]
|
return fontCache[s]
|
||||||
end
|
end
|
||||||
function FONT.reset()
|
function FONT.reset()
|
||||||
for s in next,fontCache do
|
for s in next,fontCache do
|
||||||
fontCache[s]=gc.setNewFont(mainFont,s,'light',gc.getDPIScale()*SCR.k*2)
|
fontCache[s]=gc.setNewFont(mainFont,s,'light',gc.getDPIScale()*SCR.k*2)
|
||||||
fontCache[s]:setFallbacks(gc.setNewFont(secFont,s,'light',gc.getDPIScale()*SCR.k*2))
|
if secFont then
|
||||||
|
fontCache[s]:setFallbacks(gc.setNewFont(secFont,s,'light',gc.getDPIScale()*SCR.k*2))
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
FONT.reset()
|
FONT.reset()
|
||||||
|
|||||||
2
main.lua
2
main.lua
@@ -45,7 +45,7 @@ end
|
|||||||
|
|
||||||
--Load modules
|
--Load modules
|
||||||
require'Zframework'
|
require'Zframework'
|
||||||
FONT.init('parts/fonts/barlowCond.ttf','parts/fonts/puhui.ttf')
|
FONT.init('parts/fonts/puhui.ttf')
|
||||||
setFont=FONT.set
|
setFont=FONT.set
|
||||||
getFont=FONT.get
|
getFont=FONT.get
|
||||||
SCR.setSize(1280,720)--Initialize Screen size
|
SCR.setSize(1280,720)--Initialize Screen size
|
||||||
|
|||||||
Binary file not shown.
@@ -21,7 +21,7 @@ return[=[
|
|||||||
大型任务树模式; 可调场地宽度; 可调攻击系统; 组队战; 实时统计数据可视化
|
大型任务树模式; 可调场地宽度; 可调攻击系统; 组队战; 实时统计数据可视化
|
||||||
重做模式选择UI; 重做模组UI; 高级自定义序列; 加速下落; spike相关统计数据
|
重做模式选择UI; 重做模组UI; 高级自定义序列; 加速下落; spike相关统计数据
|
||||||
方块位移/旋转动画; 更好的手柄支持; 场地格子边缘线; 模式数据分析; C2规则
|
方块位移/旋转动画; 更好的手柄支持; 场地格子边缘线; 模式数据分析; C2规则
|
||||||
Zone状态; 音效包; 手势操作; 特殊控件(虚拟摇杆等)
|
Domain状态; 音效包; 手势操作; 特殊控件(虚拟摇杆等)
|
||||||
区分各种消除(隔断/架空/混合/彩色/穿墙)
|
区分各种消除(隔断/架空/混合/彩色/穿墙)
|
||||||
更复杂的攻击(数量/可抵消延时/不可抵消延时/反击/攻击/防御/洞数/连接/炸弹/厚度)
|
更复杂的攻击(数量/可抵消延时/不可抵消延时/反击/攻击/防御/洞数/连接/炸弹/厚度)
|
||||||
更细节的DAS选项; 成就系统; 拓展主题系统
|
更细节的DAS选项; 成就系统; 拓展主题系统
|
||||||
@@ -36,7 +36,6 @@ return[=[
|
|||||||
新BGM:Jazz nihilism(用于节日主题,by Trebor)
|
新BGM:Jazz nihilism(用于节日主题,by Trebor)
|
||||||
新增规则包系统,自定义游戏和联网对战可以有更多玩法了
|
新增规则包系统,自定义游戏和联网对战可以有更多玩法了
|
||||||
新皮肤:shiny(C29H25N3O5)
|
新皮肤:shiny(C29H25N3O5)
|
||||||
英文默认字体改为Barlow
|
|
||||||
改动:
|
改动:
|
||||||
切换BGM时弹出BGM名称
|
切换BGM时弹出BGM名称
|
||||||
音乐室显示bgm进度,添加可拖进度条
|
音乐室显示bgm进度,添加可拖进度条
|
||||||
@@ -46,12 +45,13 @@ return[=[
|
|||||||
回合制模式改为7块一个回合与两条命
|
回合制模式改为7块一个回合与两条命
|
||||||
代码:
|
代码:
|
||||||
重写ai相关代码(轻微影响难度),新增BOT模块方便未来接入更多机器人
|
重写ai相关代码(轻微影响难度),新增BOT模块方便未来接入更多机器人
|
||||||
修改主循环帧率限制策略,尝试修复部分设备帧率不稳定(可能消耗更多性能)
|
修改主循环帧率限制策略,尝试修复部分设备帧率不稳定(可能多消耗一点性能)
|
||||||
大规模整理ai相关代码
|
大规模整理ai相关代码
|
||||||
方块对象内记录旋转系统
|
方块对象内记录旋转系统
|
||||||
大规模整理玩家创建特效相关方法
|
大规模整理玩家创建特效相关方法
|
||||||
调整loadLib加载安卓so库的策略
|
调整loadLib加载安卓so库的策略
|
||||||
控制台添加删除模式排行榜的命令
|
控制台添加删除模式排行榜的命令
|
||||||
|
代码进一步规范化
|
||||||
修复:
|
修复:
|
||||||
master-ph模式录像回放时有不一致 #226
|
master-ph模式录像回放时有不一致 #226
|
||||||
cc旋转第一个i块会报错
|
cc旋转第一个i块会报错
|
||||||
|
|||||||
Reference in New Issue
Block a user