chart version tag
This commit is contained in:
@@ -17,6 +17,8 @@ final class Chart {
|
||||
*/
|
||||
public inline static var defaultColor:FlxColor = 0xFF9271FD;
|
||||
|
||||
public static final version:String = "1.6.0";
|
||||
|
||||
public static function loadEventsJson(songName:String) {
|
||||
var path = Paths.file('songs/${songName.toLowerCase()}/events.json');
|
||||
var data:Array<ChartEvent> = null;
|
||||
|
||||
@@ -11,6 +11,7 @@ typedef ChartData = {
|
||||
public var scrollSpeed:Float;
|
||||
public var noteTypes:Array<String>;
|
||||
|
||||
public var ?chartVersion:String;
|
||||
public var ?fromMods:Bool;
|
||||
}
|
||||
|
||||
|
||||
@@ -1818,6 +1818,7 @@ class Charter extends UIState {
|
||||
public function buildChart() {
|
||||
PlayState.SONG.strumLines = [];
|
||||
PlayState.SONG.noteTypes = this.noteTypes;
|
||||
PlayState.SONG.chartVersion = Chart.version;
|
||||
for(s in strumLines) {
|
||||
s.strumLine.notes = [];
|
||||
PlayState.SONG.strumLines.push(s.strumLine);
|
||||
|
||||
Reference in New Issue
Block a user