登录界面可选隐藏邮箱 close #639
This commit is contained in:
@@ -687,6 +687,7 @@ return{
|
|||||||
register="Sign Up",
|
register="Sign Up",
|
||||||
email="Email Address",
|
email="Email Address",
|
||||||
password="Password",
|
password="Password",
|
||||||
|
showEmail="Show Email",
|
||||||
keepPW="Remember me",
|
keepPW="Remember me",
|
||||||
login="Log In",
|
login="Log In",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -550,6 +550,7 @@ return{
|
|||||||
register="Registrarse",
|
register="Registrarse",
|
||||||
email="Correo Elec.",
|
email="Correo Elec.",
|
||||||
password="Contraseña",
|
password="Contraseña",
|
||||||
|
-- showEmail="Show Email",
|
||||||
keepPW="Recordar credenciales",
|
keepPW="Recordar credenciales",
|
||||||
login="Entrar",
|
login="Entrar",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -641,6 +641,7 @@ return{
|
|||||||
register="Enregistrement",
|
register="Enregistrement",
|
||||||
email="E-mail",
|
email="E-mail",
|
||||||
password="Mot de passe",
|
password="Mot de passe",
|
||||||
|
-- showEmail="Show Email",
|
||||||
-- keepPW="Remember me",
|
-- keepPW="Remember me",
|
||||||
login="Connexion",
|
login="Connexion",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -689,6 +689,7 @@ return{
|
|||||||
register="Daftar",
|
register="Daftar",
|
||||||
email="Alamat Email",
|
email="Alamat Email",
|
||||||
password="Password",
|
password="Password",
|
||||||
|
-- showEmail="Show Email",
|
||||||
keepPW="Ingat Saya",
|
keepPW="Ingat Saya",
|
||||||
login="Masuk",
|
login="Masuk",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -689,6 +689,7 @@ return{
|
|||||||
register="サインアップ",
|
register="サインアップ",
|
||||||
email="Eメールアドレス",
|
email="Eメールアドレス",
|
||||||
password="パスワード",
|
password="パスワード",
|
||||||
|
-- showEmail="Show Email",
|
||||||
keepPW="常にログイン",
|
keepPW="常にログイン",
|
||||||
login="ログイン",
|
login="ログイン",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -677,6 +677,7 @@ return{
|
|||||||
register="Registrar",
|
register="Registrar",
|
||||||
email="Endereço De Email",
|
email="Endereço De Email",
|
||||||
password="Senha",
|
password="Senha",
|
||||||
|
-- showEmail="Show Email",
|
||||||
-- keepPW="Remember me",
|
-- keepPW="Remember me",
|
||||||
login="Log in",
|
login="Log in",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -488,7 +488,8 @@ return{
|
|||||||
register="Sign up",
|
register="Sign up",
|
||||||
email="@",
|
email="@",
|
||||||
password="*",
|
password="*",
|
||||||
-- keepPW="I",
|
showEmail="?",
|
||||||
|
keepPW="!",
|
||||||
login="Log in",
|
login="Log in",
|
||||||
},
|
},
|
||||||
register={
|
register={
|
||||||
|
|||||||
@@ -687,6 +687,7 @@ return{
|
|||||||
register="注册",
|
register="注册",
|
||||||
email="邮箱",
|
email="邮箱",
|
||||||
password="密码",
|
password="密码",
|
||||||
|
showEmail="显示邮箱",
|
||||||
keepPW="保存密码",
|
keepPW="保存密码",
|
||||||
login="登录",
|
login="登录",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -685,6 +685,7 @@ return{
|
|||||||
register="登记",
|
register="登记",
|
||||||
email="电子邮件地址",
|
email="电子邮件地址",
|
||||||
password="密码",
|
password="密码",
|
||||||
|
showEmail="显示电子邮件",
|
||||||
keepPW="记得我吗",
|
keepPW="记得我吗",
|
||||||
login="登录",
|
login="登录",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -687,6 +687,7 @@ return{
|
|||||||
register="註冊",
|
register="註冊",
|
||||||
email="電郵",
|
email="電郵",
|
||||||
password="密碼",
|
password="密碼",
|
||||||
|
showEmail="顯示郵箱",
|
||||||
keepPW="保存密碼",
|
keepPW="保存密碼",
|
||||||
login="登錄",
|
login="登錄",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ local emailBox=WIDGET.newInputBox{name='email',x=380,y=200,w=500,h=60,limit=128}
|
|||||||
local passwordBox=WIDGET.newInputBox{name='password',x=380,y=300,w=620,h=60,secret=true,regex="[ -~]",limit=64}
|
local passwordBox=WIDGET.newInputBox{name='password',x=380,y=300,w=620,h=60,secret=true,regex="[ -~]",limit=64}
|
||||||
|
|
||||||
local savePW=false
|
local savePW=false
|
||||||
|
local showEmail=true
|
||||||
|
|
||||||
local function _login()
|
local function _login()
|
||||||
local email,password=emailBox:getText(),passwordBox:getText()
|
local email,password=emailBox:getText(),passwordBox:getText()
|
||||||
@@ -25,19 +26,22 @@ function scene.sceneInit()
|
|||||||
local data=loadFile('conf/account','-canSkip')
|
local data=loadFile('conf/account','-canSkip')
|
||||||
if data then
|
if data then
|
||||||
savePW=true
|
savePW=true
|
||||||
|
showEmail=false
|
||||||
|
emailBox.secret=true
|
||||||
emailBox:setText(data[1])
|
emailBox:setText(data[1])
|
||||||
passwordBox:setText(data[2])
|
passwordBox:setText(data[2])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
scene.widgetList={
|
scene.widgetList={
|
||||||
WIDGET.newText{name='title', x=80, y=50,font=70,align='L'},
|
WIDGET.newText{name='title', x=80, y=50,font=70,align='L'},
|
||||||
WIDGET.newButton{name='register',x=1140,y=100,w=170,h=80,color='lY',code=function()SCN.swapTo('register','swipeR')end},
|
WIDGET.newButton{name='register', x=1140,y=100,w=170,h=80,color='lY',code=function()SCN.swapTo('register','swipeR')end},
|
||||||
emailBox,
|
emailBox,
|
||||||
passwordBox,
|
passwordBox,
|
||||||
WIDGET.newSwitch{name='keepPW', x=900, y=420,disp=function()return savePW end,code=function()savePW=not savePW end},
|
WIDGET.newSwitch{name='showEmail',x=550, y=420,disp=function()return showEmail end,code=function()showEmail=not showEmail emailBox.secret=not showEmail end},
|
||||||
WIDGET.newKey{name='login', x=1140,y=540,w=170,h=80,font=40,code=_login},
|
WIDGET.newSwitch{name='keepPW', x=900, y=420,disp=function()return savePW end,code=function()savePW=not savePW end},
|
||||||
WIDGET.newButton{name='back', x=1140,y=640,w=170,h=80,sound='back',font=60,fText=CHAR.icon.back,code=backScene},
|
WIDGET.newKey{name='login', x=1140,y=540,w=170,h=80,font=40,code=_login},
|
||||||
|
WIDGET.newButton{name='back', x=1140,y=640,w=170,h=80,sound='back',font=60,fText=CHAR.icon.back,code=backScene},
|
||||||
}
|
}
|
||||||
|
|
||||||
return scene
|
return scene
|
||||||
|
|||||||
Reference in New Issue
Block a user