if no noteStyle is found in chart, default will be chosen by week

This commit is contained in:
Lucky56
2021-06-11 16:40:09 +02:00
parent 4b1fbb40ac
commit 054ef8bf1b
2 changed files with 9 additions and 2 deletions

View File

@ -1512,7 +1512,14 @@ class PlayState extends MusicBeatState
// FlxG.log.add(i);
var babyArrow:FlxSprite = new FlxSprite(0, strumLine.y);
switch (SONG.noteStyle)
//defaults if no noteStyle was found in chart
var noteTypeCheck:String = 'normal';
if (SONG.noteStyle == null) {
switch(storyWeek) { case 6: noteTypeCheck = 'pixel'; }
} else {noteTypeCheck = SONG.noteStyle;}
switch (noteTypeCheck)
{
case 'pixel':
babyArrow.loadGraphic(Paths.image('weeb/pixelUI/arrows-pixels'), true, 17, 17);