1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-01-07 20:57:52 +00:00

lil polish

This commit is contained in:
Cameron Taylor 2024-03-14 19:40:07 -07:00
parent 82383018f6
commit d68ea0eb46

View file

@ -38,6 +38,15 @@ class FunkinSoundTray extends FlxSoundTray
y = -height; y = -height;
visible = false; visible = false;
// makes an alpha'd version of all the bars (bar_10.png)
var backingBar:Bitmap = new Bitmap(Assets.getBitmapData(Paths.image("soundtray/bars_10")));
backingBar.x = 10;
backingBar.y = 5;
backingBar.scaleX = graphicScale;
backingBar.scaleY = graphicScale;
addChild(backingBar);
backingBar.alpha = 0.4;
// clear the bars array entirely, it was initialized // clear the bars array entirely, it was initialized
// in the super class // in the super class
_bars = []; _bars = [];
@ -76,7 +85,7 @@ class FunkinSoundTray extends FlxSoundTray
} }
else if (y > -height) else if (y > -height)
{ {
lerpYPos = -height; lerpYPos = -height - 10;
if (y <= -height) if (y <= -height)
{ {
@ -104,7 +113,7 @@ class FunkinSoundTray extends FlxSoundTray
override public function show(up:Bool = false):Void override public function show(up:Bool = false):Void
{ {
_timer = 1; _timer = 1;
lerpYPos = 0; lerpYPos = 10;
visible = true; visible = true;
active = true; active = true;
var globalVolume:Int = Math.round(FlxG.sound.volume * 10); var globalVolume:Int = Math.round(FlxG.sound.volume * 10);