优化textReader场景和相关方法

框架跟进
This commit is contained in:
MrZ_26
2023-11-13 18:23:27 +08:00
parent 7d23fe4acb
commit 3806f02fa5
7 changed files with 56 additions and 51 deletions

View File

@@ -117,7 +117,7 @@ function scene.keyDown(key,isRep)
end
elseif key=='m' then
if _testButton(13) then
goTextReader{function() return FILE.load('parts/language/manual_'..(SETTING.locale:find'zh' and 'zh' or SETTING.locale:find'ja' and 'ja' or SETTING.locale:find'vi' and 'vi' or 'en')..'.txt','-string'):split('\n') or "[manual file not found]" end,15,'cubes'}()
SCN.go('textReader',nil,FILE.load('parts/language/manual_'..(SETTING.locale:find'zh' and 'zh' or SETTING.locale:find'ja' and 'ja' or SETTING.locale:find'vi' and 'vi' or 'en')..'.txt','-string'):split('\n'),15,'cubes')
end
elseif key=='c' then
enterConsole()