From a3ecfeb59a9b7bcc38da91510e67cb8c7a85b906 Mon Sep 17 00:00:00 2001 From: MrZ_26 Date: Sun, 9 Aug 2020 01:30:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=BB=E5=9B=BE=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E5=88=B0custom=E5=8F=AF=E8=BF=94=E5=9B=9Ebug=EF=BC=8C?= =?UTF-8?q?=E4=BA=8C=E8=80=85=E4=B9=8B=E9=97=B4=E5=88=87=E6=8D=A2=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E6=9B=B4=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 4 ++-- Zframework/widgetList.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index 9946059d..d82a0230 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -328,7 +328,7 @@ function keyDown.custom(key) elseif key=="q"then SCN.goto("sequence") elseif key=="e"then - SCN.swapTo("draw") + SCN.swapTo("draw","swipe") elseif #key==1 then local T=tonumber(key) if T and T>=1 and T<=5 then @@ -468,7 +468,7 @@ function keyDown.draw(key) preField[sy][sx]=pen end elseif key=="e"then - SCN.swapTo("custom") + SCN.swapTo("custom","swipe") elseif key=="escape"then SCN.back() elseif key=="c"and kb.isDown("lctrl","rctrl")or key=="cC"then diff --git a/Zframework/widgetList.lua b/Zframework/widgetList.lua index d8eba7af..29f7b439 100644 --- a/Zframework/widgetList.lua +++ b/Zframework/widgetList.lua @@ -203,7 +203,7 @@ local Widgets={ newSwitch({name="demo", x=755, y=640, font=30,disp=function()return sceneTemp.demo end,code=function()sceneTemp.demo=not sceneTemp.demo end}), newButton({name="copy", x=920, y=640, w=120, h=120, color="lRed", font=35,code=pressKey("cC")}), newButton({name="paste", x=1060, y=640, w=120, h=120, color="lBlue", font=35,code=pressKey("cV")}), - newButton({name="custom", x=110, y=80, w=140, h=80, color="white", font=35,code=function()SCN.goto("custom")end}), + newButton({name="custom", x=110, y=80, w=140, h=80, color="white", font=35,code=pressKey("e")}), newButton({name="back", x=1200, y=640, w=120, h=120, color="white", font=35,code=BACK}), }, play={