真·修复手机点不了mod

This commit is contained in:
MrZ626
2020-11-21 22:32:29 +08:00
parent e72cd1751a
commit d023455f73

View File

@@ -39,16 +39,12 @@ function mouseMove.mod(x,y)
end end
end end
end end
function mouseDown.mod(x,y,k) function mouseDown.mod(x,y)
if k==1 then for _,M in next,MODOPT do
for _,M in next,MODOPT do if(x-M.x)^2+(y-M.y)^2<1600 then
if(x-M.x)^2+(y-M.y)^2<1600 then toggleMod(M)
toggleMod(M) break
break
end
end end
elseif k==2 then
SCN.back()
end end
end end
function touchMove.mod(_,x,y) function touchMove.mod(_,x,y)