diff --git a/index.html b/index.html index ae703a71..7ebd40a2 100644 --- a/index.html +++ b/index.html @@ -316,13 +316,13 @@
-

Style preset:

+

Style preset:

diff --git a/modules/load.js b/modules/load.js index 15c30438..f1d308a2 100644 --- a/modules/load.js +++ b/modules/load.js @@ -141,6 +141,7 @@ function parseLoadedData(data) { if (settings[19]) options = JSON.parse(settings[19]); if (settings[20]) mapName.value = settings[20]; if (settings[21]) hideLabels.checked = +settings[21]; + if (settings[22]) stylePreset.value = +settings[22]; })(); void (function parseConfiguration() { diff --git a/modules/save.js b/modules/save.js index a7c5c687..c0ac85ea 100644 --- a/modules/save.js +++ b/modules/save.js @@ -421,7 +421,7 @@ function getMapData() { const dateString = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate(); const license = "File can be loaded in azgaar.github.io/Fantasy-Map-Generator"; const params = [version, license, dateString, seed, graphWidth, graphHeight, mapId].join("|"); - const settings = [distanceUnitInput.value, distanceScaleInput.value, areaUnit.value, heightUnit.value, heightExponentInput.value, temperatureScale.value, barSizeInput.value, barLabel.value, barBackOpacity.value, barBackColor.value, barPosX.value, barPosY.value, populationRate, urbanization, mapSizeOutput.value, latitudeOutput.value, temperatureEquatorOutput.value, temperaturePoleOutput.value, precOutput.value, JSON.stringify(options), mapName.value, +hideLabels.checked].join("|"); + const settings = [distanceUnitInput.value, distanceScaleInput.value, areaUnit.value, heightUnit.value, heightExponentInput.value, temperatureScale.value, barSizeInput.value, barLabel.value, barBackOpacity.value, barBackColor.value, barPosX.value, barPosY.value, populationRate, urbanization, mapSizeOutput.value, latitudeOutput.value, temperatureEquatorOutput.value, temperaturePoleOutput.value, precOutput.value, JSON.stringify(options), mapName.value, +hideLabels.checked, stylePreset.value].join("|"); const coords = JSON.stringify(mapCoordinates); const biomes = [biomesData.color, biomesData.habitability, biomesData.name].join("|"); const notesData = JSON.stringify(notes);