unicode formatting. rework background metadata detection

master
Avril 5 years ago
parent cca8a6f25e
commit 9c7591b0c5
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -1,5 +1,8 @@
<!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset='utf-8'>
<link rel='stylesheet' type='text/css' href='css/main.css'></link> <link rel='stylesheet' type='text/css' href='css/main.css'></link>
<script src='js/vendor/file-wrapper.min.js'></script> <script src='js/vendor/file-wrapper.min.js'></script>
<script src='js/vendor/line-navigator.min.js'></script> <script src='js/vendor/line-navigator.min.js'></script>

@ -129,7 +129,7 @@ function populate_sidebar(osu) {
meta("diff-tr", "data.Difficulty.SliderTickRate"); meta("diff-tr", "data.Difficulty.SliderTickRate");
//Background //Background
meta("background", "spec.Background"); meta("background", "data.Events.0.params.0");
//Colours //Colours
clearChildren(document.getElementById("meta-colours")); clearChildren(document.getElementById("meta-colours"));

@ -91,7 +91,6 @@ OSU.LoadTokens = async function(tokens) {
stages[key].forceClose(); stages[key].forceClose();
} }
this.specialise();
return this.errors; return this.errors;
}; };
@ -332,9 +331,9 @@ OSU.maru = async function(tokens) {
} }
}; };
OSU.specialise = function() { //OSU.specialise = function() {
this.spec.Background = this.data.Events[0].params[0]; // //this.spec.Background = this.data.Events[0].params[0];
}; //};
/// --- End parsers --- /// /// --- End parsers --- ///
@ -365,8 +364,6 @@ OsuFile.Unserialise = (json) => {
osu.version = json.version; osu.version = json.version;
osu.data = json.data; osu.data = json.data;
osu.specialise();
return osu; return osu;
}; };

Loading…
Cancel
Save