Skip to content

Commit

Permalink
fix: anti alias / smooth the volume sound tray
Browse files Browse the repository at this point in the history
  • Loading branch information
Kn1ghtNight authored and ninjamuffin99 committed Oct 8, 2024
1 parent 31d1b3e commit e66290c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/funkin/ui/options/FunkinSoundTray.hx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class FunkinSoundTray extends FlxSoundTray
var bg:Bitmap = new Bitmap(Assets.getBitmapData(Paths.image("soundtray/volumebox")));
bg.scaleX = graphicScale;
bg.scaleY = graphicScale;
bg.smoothing = true;
addChild(bg);

y = -height;
Expand All @@ -44,6 +45,7 @@ class FunkinSoundTray extends FlxSoundTray
backingBar.y = 5;
backingBar.scaleX = graphicScale;
backingBar.scaleY = graphicScale;
backingBar.smoothing = true;
addChild(backingBar);
backingBar.alpha = 0.4;

Expand All @@ -60,6 +62,7 @@ class FunkinSoundTray extends FlxSoundTray
bar.y = 5;
bar.scaleX = graphicScale;
bar.scaleY = graphicScale;
bar.smoothing = true;
addChild(bar);
_bars.push(bar);
}
Expand Down

0 comments on commit e66290c

Please sign in to comment.