From 054ef8bf1b4aa0c7702bf4a38feefac9179b88b2 Mon Sep 17 00:00:00 2001 From: Lucky56 <55949451+Lucky-56@users.noreply.github.com> Date: Fri, 11 Jun 2021 16:40:09 +0200 Subject: [PATCH] if no noteStyle is found in chart, default will be chosen by week --- source/PlayState.hx | 9 ++++++++- source/Song.hx | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index 0e72d6b..baa087a 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -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); diff --git a/source/Song.hx b/source/Song.hx index e81b397..5329079 100644 --- a/source/Song.hx +++ b/source/Song.hx @@ -34,7 +34,7 @@ class Song public var player1:String = 'bf'; public var player2:String = 'dad'; public var gfVersion:String = ''; - public var noteStyle:String = 'normal'; + public var noteStyle:String = ''; public var stage:String = ''; public function new(song, notes, bpm)