整理代码

This commit is contained in:
MrZ626
2021-12-18 16:08:45 +08:00
parent d6ab7e72b2
commit 226e45b24d
7 changed files with 8 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ function scene.sceneInit()
BG.set('cubes')
local fileData=love.filesystem.read('parts/language/manual_'..(SETTING.locale:find'zh'and'zh'or'en')..'.txt')
if fileData then
WIDGET.active.texts:setTexts(STRING.split(fileData,'\n'))
WIDGET.active.texts:setTexts(fileData:split('\n'))
else
WIDGET.active.texts:setTexts{"[manual file not found]"}
end