mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-11-01 17:04:49 +00:00
mute/ zero volume disables visualiser
This commit is contained in:
parent
a0d3f8ec55
commit
6dcec592f4
|
|
@ -116,7 +116,7 @@ class ABotVis extends FlxTypedSpriteGroup<FlxSprite>
|
|||
|
||||
for (i in 0...min(group.members.length, levels.length))
|
||||
{
|
||||
var animFrame:Int = Math.round(levels[i].value * 6);
|
||||
var animFrame:Int = (FlxG.sound.volume == 0 || FlxG.sound.muted) ? 0 : Math.round(levels[i].value * 6);
|
||||
|
||||
// don't display if we're at 0 volume from the level
|
||||
group.members[i].visible = animFrame > 0;
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ class CharSelectGF extends FlxAtlasSprite implements IBPMSyncedScriptedClass
|
|||
|
||||
for (i in 0...len)
|
||||
{
|
||||
var animFrame:Int = Math.round(levels[i].value * 12);
|
||||
var animFrame:Int = (FlxG.sound.volume == 0 || FlxG.sound.muted) ? 0 : Math.round(levels[i].value * 12);
|
||||
|
||||
#if sys
|
||||
// Web version scales with the Flixel volume level.
|
||||
|
|
|
|||
Loading…
Reference in a new issue