From a6389ce4bef37a2910a16a7e8a09bb30ebfce6f2 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 13 Mar 2021 11:15:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B0=8F=E7=A8=8B=E5=BA=8Fre?= =?UTF-8?q?fl=E7=9A=84ui=E5=92=8C=E8=A7=A6=E5=B1=8F=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/app_reflect.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/parts/scenes/app_reflect.lua b/parts/scenes/app_reflect.lua index 2fd0dc22..23bd90d0 100644 --- a/parts/scenes/app_reflect.lua +++ b/parts/scenes/app_reflect.lua @@ -69,9 +69,10 @@ function scene.keyDown(key) end function scene.touchDown(x,y) scene.keyDown( + state==0 and "space"or x<640 and - (y<360 and"q"or"a")or - (y<360 and"p"or"l") + (y<360 and"q"or"a")or + (y<360 and"p"or"l") ) end function scene.update() @@ -109,10 +110,9 @@ function scene.draw() gc.setColor(1,1,1,.9) gc.line(640,0,640,720) gc.setColor(1,1,1,.3) - gc.line(0,360,1280,360) + gc.line(500,360,780,360) --Help - gc.setColor(1,1,1) setFont(100) mStr("Q",80,100) mStr("A",80,480) @@ -150,4 +150,8 @@ function scene.draw() end end +scene.widgetList={ + WIDGET.newKey{name="back",x=640,y=675,w=150,h=50,font=35,code=backScene}, +} + return scene \ No newline at end of file