From d93eea4e564a9e350ebf11828c3d8b99946afc0f Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 6 Dec 2020 15:35:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 3 +-- parts/scenes/login.lua | 8 -------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index f95eabe6..48d9f138 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -171,8 +171,7 @@ end function love.keypressed(i) mouseShow=false if devMode then - if i=="f1"then - PROFILE.switch() + if i=="f1"then PROFILE.switch() elseif i=="f2"then LOG.print("System:"..SYSTEM.."["..jit.arch.."]") LOG.print("luaVer:".._VERSION) diff --git a/parts/scenes/login.lua b/parts/scenes/login.lua index cc136f51..5441d4d9 100644 --- a/parts/scenes/login.lua +++ b/parts/scenes/login.lua @@ -62,14 +62,6 @@ end local scene={} -function scene.keyDown(key) - if key=="escape"then - SCN.back() - else - WIDGET.keyPressed(key) - end -end - scene.widgetList={ 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="green",code=function()SCN.swapTo("register","swipeR")end},