mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-24 14:16:56 +00:00
Remove unnecessary scrollMenu sounds + adjust volume
This commit is contained in:
parent
4691e3d249
commit
8f44d9606d
|
@ -449,13 +449,14 @@ class PauseSubState extends MusicBeatSubState
|
|||
*/
|
||||
function changeSelection(change:Int = 0):Void
|
||||
{
|
||||
FunkinSound.playOnce(Paths.sound('scrollMenu'), 0.4);
|
||||
|
||||
var prevEntry:Int = currentEntry;
|
||||
currentEntry += change;
|
||||
|
||||
if (currentEntry < 0) currentEntry = currentMenuEntries.length - 1;
|
||||
if (currentEntry >= currentMenuEntries.length) currentEntry = 0;
|
||||
|
||||
if (currentEntry != prevEntry) FunkinSound.playOnce(Paths.sound('scrollMenu'), 0.4);
|
||||
|
||||
for (entryIndex in 0...currentMenuEntries.length)
|
||||
{
|
||||
var isCurrent:Bool = entryIndex == currentEntry;
|
||||
|
|
|
@ -94,7 +94,7 @@ class MenuTypedList<T:MenuListItem> extends FlxTypedGroup<T>
|
|||
|
||||
if (newIndex != selectedIndex)
|
||||
{
|
||||
FunkinSound.playOnce(Paths.sound('scrollMenu'));
|
||||
FunkinSound.playOnce(Paths.sound('scrollMenu'), 0.4);
|
||||
selectItem(newIndex);
|
||||
}
|
||||
|
||||
|
|
|
@ -1833,12 +1833,12 @@ class FreeplayState extends MusicBeatSubState
|
|||
|
||||
function changeSelection(change:Int = 0):Void
|
||||
{
|
||||
if (!prepForNewRank) FunkinSound.playOnce(Paths.sound('scrollMenu'), 0.4);
|
||||
|
||||
var prevSelected:Int = curSelected;
|
||||
|
||||
curSelected += change;
|
||||
|
||||
if (!prepForNewRank && curSelected != prevSelected) FunkinSound.playOnce(Paths.sound('scrollMenu'), 0.4);
|
||||
|
||||
if (curSelected < 0) curSelected = grpCapsules.countLiving() - 1;
|
||||
if (curSelected >= grpCapsules.countLiving()) curSelected = 0;
|
||||
|
||||
|
|
|
@ -387,6 +387,7 @@ class StoryMenuState extends MusicBeatState
|
|||
function changeLevel(change:Int = 0):Void
|
||||
{
|
||||
var currentIndex:Int = levelList.indexOf(currentLevelId);
|
||||
var prevIndex:Int = currentIndex;
|
||||
|
||||
currentIndex += change;
|
||||
|
||||
|
@ -417,7 +418,7 @@ class StoryMenuState extends MusicBeatState
|
|||
}
|
||||
}
|
||||
|
||||
FunkinSound.playOnce(Paths.sound('scrollMenu'), 0.4);
|
||||
if (currentIndex != prevIndex) FunkinSound.playOnce(Paths.sound('scrollMenu'), 0.4);
|
||||
|
||||
updateText();
|
||||
updateBackground(previousLevelId);
|
||||
|
|
Loading…
Reference in a new issue