修复一些联网相关场景切换关系问题

修复重设密码场景回车键自动识别功能条件错误
框架跟进
This commit is contained in:
MrZ_26
2022-10-25 02:17:07 +08:00
parent 134773765c
commit 42168ddf16
9 changed files with 26 additions and 28 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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},

View File

@@ -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