mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
save stylePreset to .map file
This commit is contained in:
parent
966184be36
commit
f69443c584
3 changed files with 4 additions and 3 deletions
|
|
@ -316,13 +316,13 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="styleContent" class="tabcontent">
|
<div id="styleContent" class="tabcontent">
|
||||||
<p data-tip="Select a style preset" style="display: inline-block">Style preset:</p>
|
<p data-tip="Select a style preset. State labels may required regeneration if font is changed" style="display: inline-block">Style preset:</p>
|
||||||
<select data-tip="Select a style preset" id="stylePreset" onchange="changeStylePreset(this.value)" style="width:45%">
|
<select data-tip="Select a style preset" id="stylePreset" onchange="changeStylePreset(this.value)" style="width:45%">
|
||||||
<option value="styleDefault" data-system=1 selected>Default</option>
|
<option value="styleDefault" data-system=1 selected>Default</option>
|
||||||
<option value="styleAncient" data-system=1>Ancient</option>
|
<option value="styleAncient" data-system=1>Ancient</option>
|
||||||
<option value="styleGloom" data-system=1>Gloom</option>
|
<option value="styleGloom" data-system=1>Gloom</option>
|
||||||
<option value="styleLight" data-system=1>Light</option>
|
|
||||||
<option value="styleClean" data-system=1>Clean</option>
|
<option value="styleClean" data-system=1>Clean</option>
|
||||||
|
<option value="styleLight" data-system=1>Light</option>
|
||||||
<option value="styleWatercolor" data-system=1>Watercolor</option>
|
<option value="styleWatercolor" data-system=1>Watercolor</option>
|
||||||
<option value="styleMonochrome" data-system=1>Monochrome</option>
|
<option value="styleMonochrome" data-system=1>Monochrome</option>
|
||||||
</select>
|
</select>
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,7 @@ function parseLoadedData(data) {
|
||||||
if (settings[19]) options = JSON.parse(settings[19]);
|
if (settings[19]) options = JSON.parse(settings[19]);
|
||||||
if (settings[20]) mapName.value = settings[20];
|
if (settings[20]) mapName.value = settings[20];
|
||||||
if (settings[21]) hideLabels.checked = +settings[21];
|
if (settings[21]) hideLabels.checked = +settings[21];
|
||||||
|
if (settings[22]) stylePreset.value = +settings[22];
|
||||||
})();
|
})();
|
||||||
|
|
||||||
void (function parseConfiguration() {
|
void (function parseConfiguration() {
|
||||||
|
|
|
||||||
|
|
@ -421,7 +421,7 @@ function getMapData() {
|
||||||
const dateString = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate();
|
const dateString = date.getFullYear() + "-" + (date.getMonth() + 1) + "-" + date.getDate();
|
||||||
const license = "File can be loaded in azgaar.github.io/Fantasy-Map-Generator";
|
const license = "File can be loaded in azgaar.github.io/Fantasy-Map-Generator";
|
||||||
const params = [version, license, dateString, seed, graphWidth, graphHeight, mapId].join("|");
|
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 coords = JSON.stringify(mapCoordinates);
|
||||||
const biomes = [biomesData.color, biomesData.habitability, biomesData.name].join("|");
|
const biomes = [biomesData.color, biomesData.habitability, biomesData.name].join("|");
|
||||||
const notesData = JSON.stringify(notes);
|
const notesData = JSON.stringify(notes);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue