原来的登录和注册界面改为密码登录和邮箱登录 邮箱登录界面不再分状态,设置密码独立出一个界面 自动登录不再检测本地用过密码登录,第一次邮箱登录不设置密码但存了token也可以 整理代码
37 lines
1.0 KiB
Lua
37 lines
1.0 KiB
Lua
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')
|
|
if fileData then
|
|
scene.widgetList.texts:setTexts(fileData:split('\n'))
|
|
else
|
|
scene.widgetList.texts:setTexts{"[manual file not found]"}
|
|
end
|
|
|
|
end
|
|
|
|
function scene.wheelMoved(_,y)
|
|
WHEELMOV(y)
|
|
end
|
|
function scene.keyDown(key)
|
|
if key=='up' then
|
|
scene.widgetList.texts:scroll(-5)
|
|
elseif key=='down' then
|
|
scene.widgetList.texts:scroll(5)
|
|
elseif key=='pageup' then
|
|
scene.widgetList.texts:scroll(-20)
|
|
elseif key=='pagedown' then
|
|
scene.widgetList.texts:scroll(20)
|
|
elseif key=='escape' then
|
|
SCN.back()
|
|
end
|
|
end
|
|
|
|
scene.widgetList={
|
|
WIDGET.newTextBox{name='texts',x=30,y=45,w=1000,h=640,font=15,fix=true},
|
|
WIDGET.newButton{name='back',x=1140,y=640,w=170,h=80,sound='back',font=60,fText=CHAR.icon.back,code=backScene},
|
|
}
|
|
|
|
return scene
|