Skip to content

Commit

Permalink
Custom Characters are now in the character list!
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLikesKirby committed May 21, 2024
1 parent 528f2c1 commit d13e052
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions mods/test/data/customCharacterList.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Example
13 changes: 12 additions & 1 deletion source/ChartingState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ class ChartingState extends MusicBeatState

var shagVoice:Bool;

var c:Array<String>;
var cm:Array<String>;

override function create()
{
curSection = lastSection;
Expand Down Expand Up @@ -329,7 +332,15 @@ class ChartingState extends MusicBeatState
shiftNotes(Std.int(stepperShiftNoteDial.value),Std.int(stepperShiftNoteDialstep.value),Std.int(stepperShiftNoteDialms.value));
});

var characters:Array<String> = CoolUtil.coolTextFile(Paths.txt('characterList'));
c = CoolUtil.coolTextFile(Paths.txt('characterList'));

if (FileSystem.exists(TitleState.modFolder + '/data/customCharacterList.txt')) {
cm = CoolUtil.coolTextFile(TitleState.modFolder + '/data/customCharacterList.txt');
} else {
cm = [''];
}

var characters:Array<String> = c.concat(cm);

var stages:Array<String> = CoolUtil.coolTextFile(Paths.txt('stageList'));

Expand Down

0 comments on commit d13e052

Please sign in to comment.