整 理 代 码
(应该没有改到字符串里面的东西吧…)起码不直接影响运行
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user