From d06e2c13d2b98232b73fbed0f084c2816b9e487b Mon Sep 17 00:00:00 2001 From: William Toohey Date: Thu, 4 Feb 2016 00:46:23 +1000 Subject: [PATCH] Editor now saves independent build --- src/js/HuesEditor.js | 3 +++ src/js/ResourcePack.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/HuesEditor.js b/src/js/HuesEditor.js index 8a4e61d..b2f40b2 100644 --- a/src/js/HuesEditor.js +++ b/src/js/HuesEditor.js @@ -852,6 +852,9 @@ HuesEditor.prototype.generateXML = function() { if(this.song.buildup) { result += " " + this.song.buildupName + "\n"; result += " " + this.song.buildupRhythm + "\n"; + if(this.song.independentBuild) { + result += " true\n"; + } } result += " \n"; return result; diff --git a/src/js/ResourcePack.js b/src/js/ResourcePack.js index e506a94..67281f6 100644 --- a/src/js/ResourcePack.js +++ b/src/js/ResourcePack.js @@ -436,7 +436,7 @@ Respack.prototype.parseSongFile = function(text) { } song.buildupRhythm = el.getTag("buildupRhythm"); - song.independentBuild = el.getTag("independentBuild"); + song.independentBuild = el.getTag("independentBuild") != "false"; song.source = el.getTag("source"); song.charsPerBeat = parseFloat(el.getTag("charsPerBeat"));