From 3b5c66d192325ba04f4991a69b3a16039bd6b0ad Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 27 Sep 2021 21:43:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=87=BB=E5=9E=AB=E5=85=81=E8=AE=B8?= =?UTF-8?q?=E9=9F=B3=E6=95=88=E8=B7=9F=E8=AF=AD=E9=9F=B3=E4=B8=80=E8=B5=B7?= =?UTF-8?q?=E5=93=8D=EF=BC=8C=E5=90=8C=E6=97=B6=E5=85=81=E8=AE=B8=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E9=9F=B3=E6=95=88=E7=9A=84=E9=9F=B3=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/launchpad.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/parts/scenes/launchpad.lua b/parts/scenes/launchpad.lua index 78bf80bd..fdcb2eaf 100644 --- a/parts/scenes/launchpad.lua +++ b/parts/scenes/launchpad.lua @@ -102,11 +102,8 @@ local function press(x,y) pad.funcAlpha[y]=1 else local k=pad[pad.page][y][x] - if k.sfx then - SFX.play(k.sfx) - elseif k.voc then - VOC.play(k.voc) - end + if k.sfx then SFX.play(k.sfx,k.vol)end + if k.voc then VOC.play(k.voc)end pad.alpha[y][x]=1 end end