From 7ed0248032dd36f39bf2382a0c8dcafa198051fe Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 10 Dec 2020 12:00:05 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E5=99=A8=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=B8=A4=E4=B8=AA=E5=BD=B1=E5=93=8D=E7=94=BB=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E7=9A=84=E5=BD=A9=E8=9B=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 3 --- parts/scenes/calculator.lua | 6 ++++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index f0396f92..7234db52 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -177,9 +177,6 @@ function love.keypressed(i) LOG.print("luaVer:".._VERSION) LOG.print("jitVer:"..jit.version) LOG.print("jitVerNum:"..jit.version_num) - local r=rnd()<.5 - love._setGammaCorrect(r) - LOG.print("GammaCorrect: "..(r and"on"or"off"),"warn") elseif i=="f3"then for _=1,8 do local P=PLAYERS.alive[rnd(#PLAYERS.alive)] diff --git a/parts/scenes/calculator.lua b/parts/scenes/calculator.lua index a4310c23..c8400b6c 100644 --- a/parts/scenes/calculator.lua +++ b/parts/scenes/calculator.lua @@ -89,6 +89,12 @@ function scene.keyDown(k) SFX.play("clear_2") elseif v%1==0 and v>=8001 and v<=8012 then love.keypressed("f"..(v-8000)) + elseif v==123456 then + gc.setWireframe(not gc.isWireframe()) + LOG.print("Wireframe: "..(gc.isWireframe()and"on"or"off"),"warn") + elseif v==654321 then + love._setGammaCorrect(not gc.isGammaCorrect()) + LOG.print("GammaCorrect: "..(gc.isGammaCorrect()and"on"or"off"),"warn") elseif v==670 then LOG.print("Screen Info:") LOG.print("x y: "..SCR.x.." "..SCR.y)