mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-25 21:55:55 +00:00
volume preference fix
This commit is contained in:
parent
23dd9937ec
commit
aff9ee5312
|
|
@ -86,26 +86,26 @@ class FunkinSoundTray extends FlxSoundTray
|
||||||
_timer -= (MS / 1000);
|
_timer -= (MS / 1000);
|
||||||
alphaTarget = 1;
|
alphaTarget = 1;
|
||||||
}
|
}
|
||||||
else if (y > -height)
|
else if (y >= -height)
|
||||||
{
|
{
|
||||||
lerpYPos = -height - 10;
|
lerpYPos = -height - 10;
|
||||||
alphaTarget = 0;
|
alphaTarget = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (y <= -height)
|
if (y <= -height)
|
||||||
|
{
|
||||||
|
visible = false;
|
||||||
|
active = false;
|
||||||
|
|
||||||
|
#if FLX_SAVE
|
||||||
|
// Save sound preferences
|
||||||
|
if (FlxG.save.isBound)
|
||||||
{
|
{
|
||||||
visible = false;
|
FlxG.save.data.mute = FlxG.sound.muted;
|
||||||
active = false;
|
FlxG.save.data.volume = FlxG.sound.volume;
|
||||||
|
FlxG.save.flush();
|
||||||
#if FLX_SAVE
|
|
||||||
// Save sound preferences
|
|
||||||
if (FlxG.save.isBound)
|
|
||||||
{
|
|
||||||
FlxG.save.data.mute = FlxG.sound.muted;
|
|
||||||
FlxG.save.data.volume = FlxG.sound.volume;
|
|
||||||
FlxG.save.flush();
|
|
||||||
}
|
|
||||||
#end
|
|
||||||
}
|
}
|
||||||
|
#end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue