From f901c25c8705441bd351515725f14c5d199d2975 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 17 Dec 2021 21:12:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=BA=9B=E5=9C=B0?= =?UTF-8?q?=E6=96=B9move=E9=9F=B3=E6=95=88=E6=B2=A1=E6=94=B9touch?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/mod.lua | 2 +- parts/scenes/music.lua | 4 ++-- parts/scenes/setting_sound.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/parts/scenes/mod.lua b/parts/scenes/mod.lua index 4401e64e..c5679d9e 100644 --- a/parts/scenes/mod.lua +++ b/parts/scenes/mod.lua @@ -33,7 +33,7 @@ local function _toggleMod(M,back) _remMod(M) end if M.unranked then - SFX.play('move',.6) + SFX.play('touch',.6) SFX.play('lock') else SFX.play('touch') diff --git a/parts/scenes/music.lua b/parts/scenes/music.lua index 064dddf1..529cc95c 100644 --- a/parts/scenes/music.lua +++ b/parts/scenes/music.lua @@ -44,12 +44,12 @@ function scene.keyDown(key,isRep) if key=='down'then if S<#bgmList then selected=S+1 - SFX.play('move',.7) + SFX.play('touch',.7) end elseif key=='up'then if S>1 then selected=S-1 - SFX.play('move',.7) + SFX.play('touch',.7) end elseif not isRep then if key=='return'or key=='space'then diff --git a/parts/scenes/setting_sound.lua b/parts/scenes/setting_sound.lua index 7f4cd77d..916c6365 100644 --- a/parts/scenes/setting_sound.lua +++ b/parts/scenes/setting_sound.lua @@ -87,7 +87,7 @@ scene.widgetList={ WIDGET.newSlider{name='mainVol', x=300, y=170,w=420,lim=220,color='lG',disp=SETval('mainVol'), code=function(v)SETTING.mainVol=v love.audio.setVolume(SETTING.mainVol)end}, WIDGET.newSlider{name='bgm', x=300, y=240,w=420,lim=220,color='lG',disp=SETval('bgm'), code=function(v)SETTING.bgm=v BGM.setVol(SETTING.bgm)end}, WIDGET.newSlider{name='sfx', x=300, y=310,w=420,lim=220,color='lC',disp=SETval('sfx'), code=function(v)SETTING.sfx=v SFX.setVol(SETTING.sfx)end, change=function()SFX.play('warn_1')end}, - WIDGET.newSlider{name='stereo', x=300, y=380,w=420,lim=220,color='lC',disp=SETval('stereo'), code=function(v)SETTING.stereo=v SFX.setStereo(SETTING.stereo)end,change=function()SFX.play('move',1,-1)SFX.play('lock',1,1)end,hideF=function()return SETTING.sfx==0 end}, + WIDGET.newSlider{name='stereo', x=300, y=380,w=420,lim=220,color='lC',disp=SETval('stereo'), code=function(v)SETTING.stereo=v SFX.setStereo(SETTING.stereo)end,change=function()SFX.play('touch',1,-1)SFX.play('lock',1,1)end,hideF=function()return SETTING.sfx==0 end}, WIDGET.newSlider{name='spawn', x=300, y=450,w=420,lim=220,color='lC',disp=SETval('sfx_spawn'), code=function(v)SETTING.sfx_spawn=v end, change=function()SFX.fplay('spawn_'..math.random(7),SETTING.sfx_spawn)end,}, WIDGET.newSlider{name='warn', x=300, y=520,w=420,lim=220,color='lC',disp=SETval('sfx_warn'), code=function(v)SETTING.sfx_warn=v end, change=function()SFX.fplay('warn_beep',SETTING.sfx_warn)end}, WIDGET.newSlider{name='vib', x=300, y=590,w=420,lim=220,color='lN',disp=SETval('vib'),unit=10,code=function(v)SETTING.vib=v end, change=function()if SETTING.vib>0 then VIB(SETTING.vib+2)end end},