its me the great papyrus
This commit is contained in:
@@ -429,7 +429,7 @@ class PlayState extends MusicBeatState
|
||||
private function generateSong(dataPath:String, ?songData:SwagSong):Void
|
||||
{
|
||||
if (songData == null) songData = SONG;
|
||||
|
||||
|
||||
Conductor.changeBPM(songData.bpm);
|
||||
|
||||
curSong = songData.song;
|
||||
@@ -1011,15 +1011,10 @@ class PlayState extends MusicBeatState
|
||||
|
||||
FlxG.switchState(new StoryMenuState());
|
||||
|
||||
// if ()
|
||||
StoryMenuState.weekUnlocked[Std.int(Math.min(storyWeek + 1, StoryMenuState.weekUnlocked.length - 1))] = true;
|
||||
|
||||
if (SONG.validScore)
|
||||
{
|
||||
Highscore.saveWeekScore(storyWeek, campaignScore, storyDifficulty);
|
||||
}
|
||||
|
||||
FlxG.save.data.weekUnlocked = StoryMenuState.weekUnlocked;
|
||||
FlxG.save.flush();
|
||||
}
|
||||
else
|
||||
|
||||
@@ -27,7 +27,7 @@ class StoryMenuState extends MusicBeatState {
|
||||
|
||||
public override function create() {
|
||||
super.create();
|
||||
loadXML();
|
||||
loadXMLs();
|
||||
|
||||
persistentUpdate = persistentDraw = true;
|
||||
|
||||
@@ -47,13 +47,27 @@ class StoryMenuState extends MusicBeatState {
|
||||
add(e);
|
||||
}
|
||||
|
||||
public function loadXML() {
|
||||
|
||||
public function loadXMLs() {
|
||||
loadXML(Paths.xml('weeks'));
|
||||
}
|
||||
|
||||
public function loadXML(xmlPath:String) {
|
||||
// try {
|
||||
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
typedef WeekData = {
|
||||
|
||||
var name:String;
|
||||
var sprite:String;
|
||||
var chars:Array<String>;
|
||||
var songs:Array<WeekSong>;
|
||||
}
|
||||
|
||||
typedef WeekSong = {
|
||||
var name:String;
|
||||
var hide:Bool;
|
||||
}
|
||||
|
||||
class MenuCharacter extends FlxSprite {
|
||||
|
||||
Reference in New Issue
Block a user