mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
making sure no log errors but there is a problem with the menu
This commit is contained in:
parent
d4a979a67f
commit
c82e0a69f7
4 changed files with 622 additions and 1039 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue