moved game/NOTE_assets to game/notes/default

This commit is contained in:
Yoshman29
2023-01-21 16:47:41 +01:00
parent 8bd84f92e7
commit 4c30c0da16
8 changed files with 8 additions and 8 deletions

Before

Width:  |  Height:  |  Size: 698 KiB

After

Width:  |  Height:  |  Size: 698 KiB

+1 -1
View File
@@ -1 +1 @@
2136
2140
+1 -1
View File
@@ -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);
+2 -2
View File
@@ -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.
+2 -2
View File
@@ -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);
}