From 5d963ce7ae455e5d564b5894a47f9929c00b8c13 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 10 Dec 2020 13:21:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AA=E9=80=80=E5=BD=A9=E8=9B=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/calculator.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/parts/scenes/calculator.lua b/parts/scenes/calculator.lua index c8400b6c..01c10c24 100644 --- a/parts/scenes/calculator.lua +++ b/parts/scenes/calculator.lua @@ -95,6 +95,8 @@ function scene.keyDown(k) elseif v==654321 then love._setGammaCorrect(not gc.isGammaCorrect()) LOG.print("GammaCorrect: "..(gc.isGammaCorrect()and"on"or"off"),"warn") + elseif v==114514 or v==1919810 or v==1145141919810 then + error() elseif v==670 then LOG.print("Screen Info:") LOG.print("x y: "..SCR.x.." "..SCR.y) @@ -147,7 +149,7 @@ scene.widgetList={ WIDGET.newKey{name="/", x=450,y=600,w=90,color="lBlue", font=50,code=WIDGET.lnk_pressKey("/")}, WIDGET.newKey{name="<", x=550,y=300,w=90,color="lRed", font=50,code=WIDGET.lnk_pressKey("backspace")}, WIDGET.newKey{name="=", x=550,y=400,w=90,color="lYellow",font=50,code=WIDGET.lnk_pressKey("return")}, - WIDGET.newButton{name="play",x=640,y=600,w=180,h=90,color="lGreen", font=40,code=WIDGET.lnk_pressKey("space"),hide=function()return not sceneTemp.pass end}, + WIDGET.newButton{name="play",x=640,y=600,w=180,h=90,color="lGreen",font=40,code=WIDGET.lnk_pressKey("space"),hide=function()return not sceneTemp.pass end}, } return scene \ No newline at end of file