Editor now saves independent build

master
William Toohey 10 years ago
parent e4f31e546e
commit d06e2c13d2
  1. 3
      src/js/HuesEditor.js
  2. 2
      src/js/ResourcePack.js

@ -852,6 +852,9 @@ HuesEditor.prototype.generateXML = function() {
if(this.song.buildup) { if(this.song.buildup) {
result += " <buildup>" + this.song.buildupName + "</buildup>\n"; result += " <buildup>" + this.song.buildupName + "</buildup>\n";
result += " <buildupRhythm>" + this.song.buildupRhythm + "</buildupRhythm>\n"; result += " <buildupRhythm>" + this.song.buildupRhythm + "</buildupRhythm>\n";
if(this.song.independentBuild) {
result += " <independentBuild>true</independentBuild>\n";
}
} }
result += " </song>\n"; result += " </song>\n";
return result; return result;

@ -436,7 +436,7 @@ Respack.prototype.parseSongFile = function(text) {
} }
song.buildupRhythm = el.getTag("buildupRhythm"); song.buildupRhythm = el.getTag("buildupRhythm");
song.independentBuild = el.getTag("independentBuild"); song.independentBuild = el.getTag("independentBuild") != "false";
song.source = el.getTag("source"); song.source = el.getTag("source");
song.charsPerBeat = parseFloat(el.getTag("charsPerBeat")); song.charsPerBeat = parseFloat(el.getTag("charsPerBeat"));

Loading…
Cancel
Save