1
0
Fork 0
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:
Lasercar 2025-06-25 15:24:37 +10:00 committed by Hundrec
parent a0d3f8ec55
commit 6dcec592f4
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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.