Skip to content

Commit

Permalink
use internal only to prevent issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mcagabe19 committed Dec 7, 2024
1 parent 05bf275 commit 691768b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/mikolka/vslice/components/FunkinSoundTray.hx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class FunkinSoundTray extends FlxSoundTray
super();
removeChildren();

var bg:Bitmap = new Bitmap(Assets.getBitmapData(Paths.getPath("images/soundtray/volumebox.png")));
var bg:Bitmap = new Bitmap(Assets.getBitmapData(Paths.getPath("images/soundtray/volumebox.png", true)));
bg.scaleX = graphicScale;
bg.scaleY = graphicScale;
addChild(bg);
Expand All @@ -40,7 +40,7 @@ class FunkinSoundTray extends FlxSoundTray
visible = false;

// makes an alpha'd version of all the bars (bar_10.png)
var backingBar:Bitmap = new Bitmap(Assets.getBitmapData(Paths.getPath("images/soundtray/bars_10.png")));
var backingBar:Bitmap = new Bitmap(Assets.getBitmapData(Paths.getPath("images/soundtray/bars_10.png", true)));
backingBar.x = 9;
backingBar.y = 5;
backingBar.scaleX = graphicScale;
Expand All @@ -56,7 +56,7 @@ class FunkinSoundTray extends FlxSoundTray
// we are trying to get assets bars_1-10
for (i in 1...11)
{
var bar:Bitmap = new Bitmap(Assets.getBitmapData(Paths.getPath("images/soundtray/bars_" + i+".png")));
var bar:Bitmap = new Bitmap(Assets.getBitmapData(Paths.getPath("images/soundtray/bars_" + i+".png", true)));
bar.x = 9;
bar.y = 5;
bar.scaleX = graphicScale;
Expand All @@ -68,9 +68,9 @@ class FunkinSoundTray extends FlxSoundTray
y = -height;
screenCenter();

volumeUpSound = Paths.getPath("sounds/soundtray/Volup.ogg");
volumeDownSound = Paths.getPath("sounds/soundtray/Voldown.ogg");
volumeMaxSound = Paths.getPath("sounds/soundtray/VolMAX.ogg");
volumeUpSound = Paths.getPath("sounds/soundtray/Volup.ogg", true);
volumeDownSound = Paths.getPath("sounds/soundtray/Voldown.ogg", true);
volumeMaxSound = Paths.getPath("sounds/soundtray/VolMAX.ogg", true);

trace("Custom tray added!");
}
Expand Down

0 comments on commit 691768b

Please sign in to comment.