diff --git a/Index.html b/Index.html
index 191a4b6..964c50e 100644
--- a/Index.html
+++ b/Index.html
@@ -80,6 +80,8 @@
For Page Width and Height, this should be the size, in pixels, that you normally capture HK with in OBS. Common values are 1920x1080 & 1080x720.
Next you'll be given the ability to move stuff around the page. The green border signifies the area that you'll be displaying in OBS. Icons can be moved from container to container or reordered within the container. Icons moved into the Red/Disabled container will be hidden even if you pick them up.
+
+ For more information go to: https://github.com/iamwyza/HollowKnightRandomizerTracker
Page Width:
diff --git a/main.js b/main.js
index 4a585a8..74413bf 100644
--- a/main.js
+++ b/main.js
@@ -42,9 +42,10 @@ $( document ).ready(function() {
googleApikey = localKey;
var profileId = getParameterByName("profile");
-
-
- var regexReplaceUrl = new RegExp(/^(file:\/\/.*Index.html)/);
+
+ var makeNew = getParameterByName("makeNew");
+
+ var regexReplaceUrl = new RegExp(/^(file:\/\/.*Index.html)/);
@@ -88,7 +89,7 @@ $( document ).ready(function() {
console.log(profileId);
- if (profileId != undefined){
+ if (profileId != undefined && makeNew == null){
if (isEditing) {
init(function() {
wsprofile.send("load|" + profileId);
@@ -837,40 +838,11 @@ $( document ).ready(function() {
value = minData.value;
break;
}
-
- switch (name) {
- case "fireballLevel1":
- case "fireballLevel2":
- data["fireballLevel"]++;
- break;
- case "quakeLevel1":
- case "quakeLevel2":
- data["quakeLevel"]++;
- break;
- case "screamLevel1":
- case "screamLevel2":
- data["screamLevel"]++;
- break;
- case "trinket1":
- case "trinket2":
- case "trinket3":
- case "trinket4":
- send("relics");
- return;
- default:
- data[name] = value;
- break;
- }
-
+ data[name] = value;
}
}else{
- if(lastCommand == "relics") {
- console.log(minData);
- $.each(minData, function(i, e) {
- data[i] = e;
- });
- }else if (minData != undefined){
+ if (minData != undefined){
data = minData;
}
}
@@ -1028,10 +1000,6 @@ $( document ).ready(function() {
else
$('#dreamNailUpgraded').removeClass("selected").parent().hide();
}
-
-
-
- //updateUrlConfig();
}
function updateVisible() {
@@ -1044,17 +1012,11 @@ $( document ).ready(function() {
function updateUrlConfig() {
console.log("Updating url string");
- //config = LZString.compressToEncodedURIComponent(JSON.stringify(map));
-
- //urlParams["config"] = config;
urlParams["profile"] = profileId;
window.history.pushState(profileId, "", "Index.html?" + $.param(urlParams) );
if (map != undefined && wsprofile.readyState === wsprofile.OPEN)
wsprofile.send("save|" + profileId + "|" + btoa(JSON.stringify(map, null, 2).replace("==", "%3D%3D")));
-
- //if (config.length > 1900)
- // alert("Developer Warning, config length is > 1900. If you see this message let the developer know.");
}
function setSelected(has, id) {
diff --git a/version.txt b/version.txt
deleted file mode 100644
index c33b7ea..0000000
--- a/version.txt
+++ /dev/null
@@ -1 +0,0 @@
-28/10/17.a
\ No newline at end of file