Skip to content

Commit

Permalink
quick question, what if i added djflixel?
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Jun 7, 2024
1 parent 823fe55 commit 668f639
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class Joalor64SoundTray extends flixel.system.ui.FlxSoundTray
_bar.x = 2.5;
addChild(_bar);

final tmp:Bitmap = new Bitmap(Assets.getBitmapData(Paths.image("soundtray"), false), null, true);
final tmp:Bitmap = new Bitmap(Assets.getBitmapData("assets/images/soundtray.png", false), null, true);
addChild(tmp);

screenCenter();
Expand All @@ -280,9 +280,9 @@ class Joalor64SoundTray extends flixel.system.ui.FlxSoundTray
y = -height;
visible = false;

volumeUpSound = Paths.sound("soundtray/Volup");
volumeDownSound = Paths.sound("soundtray/Voldown");
volumeMaxSound = Paths.sound("soundtray/VolMAX");
volumeUpSound = "assets/sounds/soundtray/Volup.ogg";
volumeDownSound = "assets/sounds/soundtray/Voldown.ogg";
volumeMaxSound = "assets/sounds/soundtray/VolMAX.ogg";
}

override function update(elapsed:Float) {
Expand All @@ -291,6 +291,9 @@ class Joalor64SoundTray extends flixel.system.ui.FlxSoundTray

override function show(up:Bool = false)
{
var globalVolume:Int = Math.round(FlxG.sound.volume * 10);
if (FlxG.sound.muted) globalVolume = 0;

if (!silent)
{
var sound = up ? volumeUpSound : volumeDownSound;
Expand Down
1 change: 1 addition & 0 deletions source/meta/state/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import openfl.filters.ShaderFilter;
import openfl.events.KeyboardEvent;

import flixel.animation.FlxAnimationController;
import flixel.util.FlxTimer.FlxTimerManager;

import modcharting.ModchartFuncs;
import modcharting.NoteMovement;
Expand Down

0 comments on commit 668f639

Please sign in to comment.