整 理 代 码

(应该没有改到字符串里面的东西吧…)起码不直接影响运行
This commit is contained in:
MrZ_26
2022-10-01 11:32:11 +08:00
parent 6e00ff96ec
commit 06f4bb4e1a
236 changed files with 2087 additions and 2114 deletions

View File

@@ -2,7 +2,7 @@ local scene={}
function scene.sceneInit()
BG.set('cubes')
local fileData=FILE.load('parts/language/manual_'..(SETTING.locale:find'zh'and'zh'or SETTING.locale:find'ja'and'ja'or'en')..'.txt','-string')
local fileData=FILE.load('parts/language/manual_'..(SETTING.locale:find'zh' and 'zh' or SETTING.locale:find'ja' and 'ja' or 'en')..'.txt','-string')
if fileData then
WIDGET.active.texts:setTexts(fileData:split('\n'))
else
@@ -15,15 +15,15 @@ function scene.wheelMoved(_,y)
WHEELMOV(y)
end
function scene.keyDown(key)
if key=='up'then
if key=='up' then
WIDGET.active.texts:scroll(-5)
elseif key=='down'then
elseif key=='down' then
WIDGET.active.texts:scroll(5)
elseif key=='pageup'then
elseif key=='pageup' then
WIDGET.active.texts:scroll(-20)
elseif key=='pagedown'then
elseif key=='pagedown' then
WIDGET.active.texts:scroll(20)
elseif key=='escape'then
elseif key=='escape' then
SCN.back()
end
end