From d023455f735e2c6684c340f753bd6e0ed4494078 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 21 Nov 2020 22:32:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=9F=C2=B7=E4=BF=AE=E5=A4=8D=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E7=82=B9=E4=B8=8D=E4=BA=86mod?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/mod.lua | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/parts/scenes/mod.lua b/parts/scenes/mod.lua index 594fccce..55cfdb7f 100644 --- a/parts/scenes/mod.lua +++ b/parts/scenes/mod.lua @@ -39,16 +39,12 @@ function mouseMove.mod(x,y) end end end -function mouseDown.mod(x,y,k) - if k==1 then - for _,M in next,MODOPT do - if(x-M.x)^2+(y-M.y)^2<1600 then - toggleMod(M) - break - end +function mouseDown.mod(x,y) + for _,M in next,MODOPT do + if(x-M.x)^2+(y-M.y)^2<1600 then + toggleMod(M) + break end - elseif k==2 then - SCN.back() end end function touchMove.mod(_,x,y)