From 2627e55229a2e2c1f6b70119c09d815b7bb37bc8 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 3 May 2021 02:08:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E7=90=86=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/init.lua | 4 ++-- parts/data.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Zframework/init.lua b/Zframework/init.lua index 51a11ebb..af088977 100644 --- a/Zframework/init.lua +++ b/Zframework/init.lua @@ -119,7 +119,7 @@ function love.mousepressed(x,y,k,touch) if SCN.mouseDown then SCN.mouseDown(mx,my,k)end WIDGET.press(mx,my,k) lastX,lastY=mx,my - if SETTING.clickFX then SYSFX.newTap(3,mx,my,30)end + if SETTING.clickFX then SYSFX.newTap(3,mx,my)end end function love.mousemoved(x,y,dx,dy,touch) if touch then return end @@ -189,7 +189,7 @@ function love.touchreleased(id,x,y) if SCN.touchUp then SCN.touchUp(x,y)end if(x-lastX)^2+(y-lastY)^2<62 then if SCN.touchClick then SCN.touchClick(x,y)end - if SETTING.clickFX then SYSFX.newTap(3,x,y,30)end + if SETTING.clickFX then SYSFX.newTap(3,x,y)end end end diff --git a/parts/data.lua b/parts/data.lua index 9f58e82d..d56d98a6 100644 --- a/parts/data.lua +++ b/parts/data.lua @@ -368,7 +368,7 @@ do--function DATA.saveRecording() end --Write file - local fileName="replay/"..os.date("%Y_%m_%d_%a_%H%M%S.rep") + local fileName=os.date("replay/%Y_%m_%d_%a_%H%M%S.rep") if not love.filesystem.getInfo(fileName)then local fileHead= os.date("%Y/%m/%d %A %H:%M:%S\n")..