修复一些联网相关场景切换关系问题
修复重设密码场景回车键自动识别功能条件错误 框架跟进
This commit is contained in:
@@ -127,7 +127,7 @@ function scene.mouseDown()
|
||||
SCN.push('main')
|
||||
SCN.swapTo('lang')
|
||||
else
|
||||
SCN.swapTo(SETTING.simpMode and 'main_simple' or 'main')
|
||||
SCN.go(SETTING.simpMode and 'main_simple' or 'main')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -108,7 +108,7 @@ function scene.keyDown(key,isRep)
|
||||
elseif key=='escape' then
|
||||
if tryBack() then
|
||||
VOC.play('bye')
|
||||
SCN.swapTo('quit','slowFade')
|
||||
SCN.back()
|
||||
end
|
||||
else
|
||||
return true
|
||||
|
||||
@@ -185,7 +185,7 @@ function scene.update()
|
||||
end
|
||||
end
|
||||
|
||||
local _=SCN.stat.tar
|
||||
local _=SCN.state.tar
|
||||
mapCam.zoomMethod=_=="game" and 1 or _=="mode" and 2
|
||||
if mapCam.zoomMethod==1 then
|
||||
_=mapCam.zoomK
|
||||
|
||||
@@ -5,6 +5,7 @@ function scene.sceneInit()
|
||||
end
|
||||
function scene.sceneBack()
|
||||
NET.ws_close()
|
||||
TASK.removeTask_code(NET.ws_update)
|
||||
end
|
||||
|
||||
function scene.draw()
|
||||
@@ -27,7 +28,6 @@ scene.widgetList={
|
||||
USER.__data.rToken=false
|
||||
USER.__data.aToken=false
|
||||
love.filesystem.remove('conf/user')
|
||||
NET.ws_close()
|
||||
SCN.back()
|
||||
end
|
||||
end},
|
||||
|
||||
@@ -20,9 +20,9 @@ function scene.keyDown(key,rep)
|
||||
SCN.back()
|
||||
elseif key=='return' then
|
||||
if #scene.widgetList.code:getText()==0 then
|
||||
_setPW()
|
||||
else
|
||||
NET.getCode(USER.email)
|
||||
else
|
||||
_setPW()
|
||||
end
|
||||
else
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user