mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-28 15:57:42 +00:00
chart editor slight fixins in progress
This commit is contained in:
parent
809fec5a51
commit
122545405b
|
@ -350,6 +350,23 @@ class ChartingState extends MusicBeatState
|
|||
// vocals.stop();
|
||||
}
|
||||
|
||||
var pathShit = Paths.inst(daSong);
|
||||
|
||||
if (!openfl.utils.Assets.cache.hasSound(pathShit))
|
||||
{
|
||||
var library = Assets.getLibrary("songs");
|
||||
var symbolPath = pathShit.split(":").pop();
|
||||
// @:privateAccess
|
||||
// library.types.set(symbolPath, SOUND);
|
||||
// @:privateAccess
|
||||
// library.pathGroups.set(symbolPath, [library.__cacheBreak(symbolPath)]);
|
||||
// var callback = callbacks.add("song:" + pathShit);
|
||||
openfl.utils.Assets.loadSound(pathShit).onComplete(function(_)
|
||||
{
|
||||
// callback();
|
||||
});
|
||||
}
|
||||
|
||||
FlxG.sound.playMusic(Paths.inst(daSong), 0.6);
|
||||
|
||||
// WONT WORK FOR TUTORIAL OR TEST SONG!!! REDO LATER
|
||||
|
@ -549,7 +566,8 @@ class ChartingState extends MusicBeatState
|
|||
PlayState.SONG = _song;
|
||||
FlxG.sound.music.stop();
|
||||
vocals.stop();
|
||||
FlxG.switchState(new PlayState());
|
||||
LoadingState.loadAndSwitchState(new PlayState());
|
||||
// FlxG.switchState(new PlayState());
|
||||
}
|
||||
|
||||
if (FlxG.keys.justPressed.E)
|
||||
|
|
|
@ -69,8 +69,8 @@ class DebugBoundingState extends FlxState
|
|||
|
||||
FlxG.cameras.add(hudCam, false);
|
||||
|
||||
// bg = FlxGridOverlay.create(10, 10);
|
||||
bg = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.GREEN);
|
||||
bg = FlxGridOverlay.create(10, 10);
|
||||
// bg = new FlxSprite().makeGraphic(FlxG.width, FlxG.height, FlxColor.GREEN);
|
||||
|
||||
bg.scrollFactor.set();
|
||||
add(bg);
|
||||
|
|
Loading…
Reference in a new issue