Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions source/funkin/ui/options/FunkinSoundTray.hx
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ class FunkinSoundTray extends FlxSoundTray
for (i in 0..._bars.length) _bars[i].visible = i < globalVolume;
}

override public function screenCenter():Void
{
scaleX = _defaultScale * (FlxG.scaleMode.scale.x > 0 ? FlxG.scaleMode.scale.x : 1);
scaleY = _defaultScale * (FlxG.scaleMode.scale.y > 0 ? FlxG.scaleMode.scale.y : 1);
x = (0.5 * (FlxG.stage.stageWidth - _bg.width * scaleX) - FlxG.game.x);
}

function saveVolumePreferences():Void
{
// Actually save when the volume is changed / modified
Expand Down
Loading