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
No known key found for this signature in database
GPG Key ID: 19E3875EAD1F8B8F
2 changed files with 9 additions and 2 deletions

View File

@ -1512,7 +1512,14 @@ class PlayState extends MusicBeatState
// FlxG.log.add(i); // FlxG.log.add(i);
var babyArrow:FlxSprite = new FlxSprite(0, strumLine.y); 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': case 'pixel':
babyArrow.loadGraphic(Paths.image('weeb/pixelUI/arrows-pixels'), true, 17, 17); babyArrow.loadGraphic(Paths.image('weeb/pixelUI/arrows-pixels'), true, 17, 17);

View File

@ -34,7 +34,7 @@ class Song
public var player1:String = 'bf'; public var player1:String = 'bf';
public var player2:String = 'dad'; public var player2:String = 'dad';
public var gfVersion:String = ''; public var gfVersion:String = '';
public var noteStyle:String = 'normal'; public var noteStyle:String = '';
public var stage:String = ''; public var stage:String = '';
public function new(song, notes, bpm) public function new(song, notes, bpm)