Merge pull request #1293 from trayfellow/trayfellow-scrollsfx

scroll sound effect now plays when you scroll through the pause menu
This commit is contained in:
Kade M 2021-07-13 18:19:29 -07:00 committed by GitHub
commit 5fc1a753b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,6 +264,8 @@ class PauseSubState extends MusicBeatSubstate
function changeSelection(change:Int = 0):Void function changeSelection(change:Int = 0):Void
{ {
curSelected += change; curSelected += change;
FlxG.sound.play(Paths.sound('scrollMenu'), 0.4);
if (curSelected < 0) if (curSelected < 0)
curSelected = menuItems.length - 1; curSelected = menuItems.length - 1;
@ -287,4 +289,4 @@ class PauseSubState extends MusicBeatSubstate
} }
} }
} }
} }