From 2424ba692eb6a8b68c171bb62e4dcc4e82dd7748 Mon Sep 17 00:00:00 2001 From: MrZ_26 Date: Sat, 8 Aug 2020 01:53:56 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E6=A8=A1=E5=BC=8F=E4=B8=8B?= =?UTF-8?q?=E9=94=AE=E7=9B=98=E5=8A=9F=E8=83=BD=E5=88=B6=E4=B8=8D=E5=AE=8C?= =?UTF-8?q?=E5=85=A8=E5=A4=B1=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index 4ba096f4..80d2761f 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -876,19 +876,7 @@ function love.touchreleased(id,x,y) end function love.keypressed(i) mouseShow=false - if not devMode then - if i~="f8"then - if SCN.swapping then return end - - if keyDown[SCN.cur]then keyDown[SCN.cur](i) - elseif i=="escape"then SCN.back() - else WIDGET.keyPressed(i) - end - else - devMode=1 - TEXT.show("DEBUG ON",640,360,80,"fly",.8) - end - else + if devMode then if i=="f5"then DBP("DEBUG:") elseif i=="f8"then devMode=nil TEXT.show("DEBUG OFF",640,360,80,"fly",.8) @@ -928,8 +916,22 @@ function love.keypressed(i) elseif i=="]"then W.font=W.font+1 end end + else + goto NORMAL end end + ::NORMAL:: + if i~="f8"then + if SCN.swapping then return end + + if keyDown[SCN.cur]then keyDown[SCN.cur](i) + elseif i=="escape"then SCN.back() + else WIDGET.keyPressed(i) + end + else + devMode=1 + TEXT.show("DEBUG ON",640,360,80,"fly",.8) + end end function love.keyreleased(i) if SCN.swapping then return end