moved game/NOTE_assets to game/notes/default
This commit is contained in:
|
Before Width: | Height: | Size: 698 KiB After Width: | Height: | Size: 698 KiB |
+1
-1
@@ -1 +1 @@
|
||||
2136
|
||||
2140
|
||||
@@ -113,7 +113,7 @@ class Note extends FlxSprite
|
||||
this.noteData = noteData;
|
||||
|
||||
var customType = Paths.image('game/notes/${this.noteType}');
|
||||
var event = EventManager.get(NoteCreationEvent).recycle(this, strumID, this.noteType, noteTypeID, strumLineID, mustPress, Assets.exists(customType) ? 'game/notes/${this.noteType}' : 'game/NOTE_assets', 0.7, animSuffix);
|
||||
var event = EventManager.get(NoteCreationEvent).recycle(this, strumID, this.noteType, noteTypeID, strumLineID, mustPress, Assets.exists(customType) ? 'game/notes/${this.noteType}' : 'game/notes/default', 0.7, animSuffix);
|
||||
|
||||
if (PlayState.instance != null)
|
||||
event = PlayState.instance.scripts.event("onNoteCreation", event);
|
||||
|
||||
@@ -937,14 +937,14 @@ class PlayState extends MusicBeatState
|
||||
|
||||
curSong = songData.song.toLowerCase();
|
||||
|
||||
inst = FlxG.sound.load(Paths.inst(PlayState.SONG.song));
|
||||
inst = FlxG.sound.load(Paths.inst(SONG.song, difficulty));
|
||||
vocals = FlxG.sound.list.recycle(FlxSound);
|
||||
@:privateAccess {
|
||||
vocals.reset();
|
||||
vocals.exists = true;
|
||||
}
|
||||
if (SONG.needsVoices)
|
||||
vocals.loadEmbedded(Paths.voices(PlayState.SONG.song));
|
||||
vocals.loadEmbedded(Paths.voices(SONG.song, difficulty));
|
||||
FlxG.sound.list.add(vocals);
|
||||
|
||||
inst.persist = vocals.persist = false;
|
||||
|
||||
@@ -152,7 +152,7 @@ class KeybindsOptions extends MusicBeatSubstate {
|
||||
var sparrowIcon:String = null;
|
||||
var sparrowAnim:String = null;
|
||||
if (e.name.startsWith('{note')) {// is actually a note!!
|
||||
sparrowIcon = "game/NOTE_assets";
|
||||
sparrowIcon = "game/notes/default";
|
||||
sparrowAnim = switch(e.name) {
|
||||
case '{noteLeft}':
|
||||
"purple0";
|
||||
|
||||
@@ -24,7 +24,7 @@ class StrumCreationEvent extends CancellableEvent {
|
||||
/**
|
||||
* Sprite path, in case you only want to change the sprite.
|
||||
*/
|
||||
public var sprite:String = "game/NOTE_assets";
|
||||
public var sprite:String = "game/notes/default";
|
||||
|
||||
/**
|
||||
* Cancels the animation that makes the strum "land" in the strumline.
|
||||
|
||||
@@ -110,13 +110,13 @@ class Paths
|
||||
|
||||
inline static public function voices(song:String, difficulty:String = "normal")
|
||||
{
|
||||
var diff = getPath('songs/${song.toLowerCase()}/song/Voices-$difficulty.$SOUND_EXT', MUSIC, null);
|
||||
var diff = getPath('songs/${song.toLowerCase()}/song/Voices-${difficulty.toLowerCase()}.$SOUND_EXT', MUSIC, null);
|
||||
return OpenFlAssets.exists(diff) ? diff : getPath('songs/${song.toLowerCase()}/song/Voices.$SOUND_EXT', MUSIC, null);
|
||||
}
|
||||
|
||||
inline static public function inst(song:String, difficulty:String = "normal")
|
||||
{
|
||||
var diff = getPath('songs/${song.toLowerCase()}/song/Inst-$difficulty.$SOUND_EXT', MUSIC, null);
|
||||
var diff = getPath('songs/${song.toLowerCase()}/song/Inst-${difficulty.toLowerCase()}.$SOUND_EXT', MUSIC, null);
|
||||
return OpenFlAssets.exists(diff) ? diff : getPath('songs/${song.toLowerCase()}/song/Inst.$SOUND_EXT', MUSIC, null);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user