making sure no log errors but there is a problem with the menu

This commit is contained in:
headwinds 2018-10-07 20:18:59 -04:00
parent d4a979a67f
commit c82e0a69f7
4 changed files with 622 additions and 1039 deletions

View file

@ -1,3 +1,29 @@
function restoreDefaultOptions() {
// remove ALL saved data from LocalStorage
localStorage.clear();
// set defaut values
mapWidthInput.value = window.innerWidth;
mapHeightInput.value = window.innerHeight;
changeMapSize();
graphSize = sizeInput.value = sizeOutput.value = 1;
$("#options i[class^='icon-lock']").each(function() {
this.setAttribute("data-locked", 0);
this.className = "icon-lock-open";
if (this.id === "lockNeutralInput" || this.id === "lockSwampinessInput") {
this.setAttribute("data-locked", 1);
this.className = "icon-lock";
}
});
neutralInput.value = neutralOutput.value = 200;
swampinessInput.value = swampinessOutput.value = 10;
outlineLayersInput.value = "-6,-3,-1";
transparencyInput.value = transparencyOutput.value = 0;
changeDialogsTransparency(0);
pngResolutionInput.value = 5;
pngResolutionOutput.value = "5x";
randomizeOptions();
}
// Heighmap Template: Volcano
function templateVolcano(mod) {
addMountain();