From 17bc226e98512bd6a9d34b35693e935d414964f8 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 14 Oct 2020 01:04:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Edebug=E9=94=AE=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E7=B3=BB=E7=BB=9F=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index 87fed352..a7343f56 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -187,10 +187,17 @@ end function love.keypressed(i) mouseShow=false if devMode then - if i=="f1"then love._setGammaCorrect(true)LOG.print("GammaCorrect: on","warn") - elseif i=="f2"then love._setGammaCorrect(false)LOG.print("GammaCorrect: off","warn") + if i=="f1"then + local r=rnd()<.5 + love._setGammaCorrect(r) + LOG.print("GammaCorrect: "..(r and"on"or"off"),"warn") + elseif i=="f2"then + LOG.print("System:"..system.."["..jit.arch.."]") + LOG.print("luaVer:".._VERSION) + LOG.print("jitVer:"..jit.version) + LOG.print("jitVerNum:"..jit.version_num) elseif i=="f3"then - for i=1,8 do + for _=1,8 do local P=players.alive[rnd(#players.alive)] if P~=players[1]then P.lastRecv=players[1]