mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
V1.8 (#784)
* pump version to 1.8 * resampleDialog UI update * don't draw markers if not required * submapOptionsDialog style changes
This commit is contained in:
parent
8a0fbd14dc
commit
e6dfab48c2
7 changed files with 141 additions and 149 deletions
142
index.html
142
index.html
|
|
@ -274,7 +274,7 @@
|
|||
<div id="loading">
|
||||
<div id="titleName"><t data-t="titleName">Azgaar's</t></div>
|
||||
<div id="title"><t data-t="title">Fantasy Map Generator</t></div>
|
||||
<div id="version"><t data-t="version">v. </t>1.73</div>
|
||||
<div id="version"><t data-t="version">v. </t>1.8</div>
|
||||
<p id="loading-text"><t data-t="loading">LOADING</t><span>.</span><span>.</span><span>.</span></p>
|
||||
</div>
|
||||
|
||||
|
|
@ -1247,7 +1247,7 @@
|
|||
<input id="pointsInput" type="range" min="1" max="13" value="4" data-cells="10000" />
|
||||
</td>
|
||||
<td>
|
||||
<output id="pointsOutput_formatted" style="color: #053305">10K</output>
|
||||
<output id="pointsOutputFormatted" style="color: #053305">10K</output>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
|
@ -1727,9 +1727,9 @@
|
|||
</div>
|
||||
|
||||
<p>Click to create a new map:</p>
|
||||
<div id="resamplers">
|
||||
<button data-tip="Click to generate new (sub)map from the current viewport" onclick="UISubmap.openSubmapOptions()">Submap</button>
|
||||
<button data-tip="Click to resample (transform) your map to different cellcount" onclick="UISubmap.openRemapOptions()">Resample</button>
|
||||
<div>
|
||||
<button id="openSubmapMenu" data-tip="Click to generate a submap from the current viewport">Submap</button>
|
||||
<button id="openResampleMenu" data-tip="Click to transform the map">Resample</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -4444,99 +4444,79 @@
|
|||
<div id="tileStatus" style="background-color: #33333310; font-style: italic"></div>
|
||||
</div>
|
||||
|
||||
<div id="remapOptionsDialog" style="display: none; max-width: 300px" class="dialog">
|
||||
<p style="font-style: italic; color: red; font-weight: bold">Warning! This operation is destructive and irreversible. Don't forget to save your map!</p>
|
||||
<table>
|
||||
<tr>
|
||||
<td>Points number</td>
|
||||
<td>
|
||||
<input
|
||||
id="submapPointsInput"
|
||||
autocomplete="off"
|
||||
type="range"
|
||||
min="1"
|
||||
max="13"
|
||||
value="4"
|
||||
data-cells="10000"
|
||||
oninput="document.getElementById('submapPointsOutput').value=cellsDensityConstants[+this.value]/1000 + 'K'; event.stopPropagation()"
|
||||
/>
|
||||
</td>
|
||||
<td>
|
||||
<output id="submapPointsOutput" style="color: #053305">10K</output>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Shift</td>
|
||||
<td colspan="2">
|
||||
X: <input id="submapShiftX" autocomplete="off" min="0" size="4" value="0"/>
|
||||
Y: <input id="submapShiftY" autocomplete="off" min="0" size="4" value="0"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Rotate <i class="icon-cw"></i></td>
|
||||
<td>
|
||||
<input
|
||||
id="submapRotationAngle"
|
||||
autocomplete="off"
|
||||
type="range"
|
||||
min="0"
|
||||
max="359"
|
||||
value="0"
|
||||
oninput="document.getElementById('submapRotationAngleOutput').value=+this.value + '°'"
|
||||
/>
|
||||
</td>
|
||||
<td>
|
||||
<output id="submapRotationAngleOutput" style="color: #053305">0°</output>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mirror</td>
|
||||
<td colspan="2">
|
||||
<input type="checkbox" class="checkbox" id="submapMirrorH" />
|
||||
<label for="submapMirrorH" class="checkbox-label" >Horizontally</label>
|
||||
|
||||
<input type="checkbox" class="checkbox" id="submapMirrorV" />
|
||||
<label for="submapMirrorV" class="checkbox-label">Vertically</label>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="submapOptionsDialog" style="display: none; max-width: 300px" class="dialog">
|
||||
<p style="font-style: italic; color: red; font-weight: bold">
|
||||
Warning! This operation is destructive and irreversible. Don't forget to save your original map!
|
||||
<div id="resampleDialog" style="display: none" class="dialog">
|
||||
<p style="font-weight: bold">
|
||||
This operation is destructive and irreversible. It will create a completely new map based on the current one. Don't forget to save the current project
|
||||
as a .map file first!
|
||||
</p>
|
||||
<p><em>Settings to be changed:</em> Population rate, map pixel size.</p>
|
||||
<p><em>Data to be copied:</em> Heightmap, Biome, Religion, Population, Precipitation, Cultures, States, Provinces, Regiments (military), Markers.</p>
|
||||
<p><em>Data to be destroyed (regenerated):</em> Zones, Roads, Rivers (mostly regenerate at the same place).</p>
|
||||
<p>Remapping Burgs (cities) may be imprecise, you will need to fix missing or wrongly mapped burgs manually.</p>
|
||||
<p>Lock remapped items for:</p>
|
||||
<div data-tip="Lock all markers copied from the original map.">
|
||||
<div style="display: grid; grid-template-columns: 2fr 3fr; grid-template-rows: repeat(4, 1fr); align-items: center; padding-left: 0.5em">
|
||||
<div>Points number</div>
|
||||
<div>
|
||||
<input id="submapPointsInput" type="range" min="1" max="13" value="4" />
|
||||
<output id="submapPointsOutputFormatted" style="color: #053305">10K</output>
|
||||
</div>
|
||||
|
||||
<div>Shift</div>
|
||||
<div>
|
||||
<label>X: <input id="submapShiftX" type="number" min="0" size="4" value="0" /></label>
|
||||
<label>Y: <input id="submapShiftY" type="number" min="0" size="4" value="0" /></label>
|
||||
</div>
|
||||
|
||||
<div>Rotate</div>
|
||||
<div>
|
||||
<input id="submapAngleInput" type="range" min="0" max="359" value="0" />
|
||||
<output id="submapAngleOutput">0</output>°
|
||||
</div>
|
||||
|
||||
<div>Mirror</div>
|
||||
<div>
|
||||
<input type="checkbox" class="checkbox" id="submapMirrorH" />
|
||||
<label for="submapMirrorH" class="checkbox-label">horizontally</label>
|
||||
|
||||
<input type="checkbox" class="checkbox" id="submapMirrorV" />
|
||||
<label for="submapMirrorV" class="checkbox-label">vertically</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="submapOptionsDialog" style="display: none" class="dialog">
|
||||
<p style="font-weight: bold">
|
||||
This operation is destructive and irreversible. It will create a completely new map based on the current one. Don't forget to save the current project
|
||||
as a .map file first!
|
||||
</p>
|
||||
|
||||
<p>Settings to be changed: population rate, map pixel size</p>
|
||||
<p>Data to be copied: heightmap, biomes, religions, population, precipitation, cultures, states, provinces, military regiments</p>
|
||||
<p>Data to be regenerated: zones, roads, rivers</p>
|
||||
<p>Burgs may be remapped incorrectly, manual change is required</p>
|
||||
|
||||
<p>Keep data for:</p>
|
||||
<div data-tip="Lock all markers copied from the original map">
|
||||
<input id="submapLockMarkers" class="checkbox" type="checkbox" checked />
|
||||
<label for="submapLockMarkers" class="checkbox-label">Markers</label>
|
||||
</div>
|
||||
<div data-tip="Lock all burgs copied from the original map.">
|
||||
<div data-tip="Lock all burgs copied from the original map">
|
||||
<input id="submapLockBurgs" class="checkbox" type="checkbox" checked />
|
||||
<label for="submapLockBurgs" class="checkbox-label">Burgs (cities)</label>
|
||||
<label for="submapLockBurgs" class="checkbox-label">Burgs</label>
|
||||
</div>
|
||||
|
||||
<p>Extra / experimental features:</p>
|
||||
<div data-tip="Rivers on the parent map errode land (helps to get similar river network.)">
|
||||
<p>Experimental features:</p>
|
||||
<div data-tip="Rivers on the parent map will errode land (helps to get similar river network)">
|
||||
<input id="submapDepressRivers" class="checkbox" type="checkbox" />
|
||||
<label for="submapDepressRivers" class="checkbox-label">Errode riverbeds.</label>
|
||||
<label for="submapDepressRivers" class="checkbox-label">Errode riverbeds</label>
|
||||
</div>
|
||||
<div data-tip="Rescale styles (burg labels, emblem size) to match the new scale.">
|
||||
<input id="submapRescaleStyles" class="checkbox" type="checkbox" checked/>
|
||||
<label for="submapRescaleStyles" class="checkbox-label">Rescale Styles</label>
|
||||
<div data-tip="Rescale styles (burg labels, emblem size) to match the new scale">
|
||||
<input id="submapRescaleStyles" class="checkbox" type="checkbox" checked />
|
||||
<label for="submapRescaleStyles" class="checkbox-label">Rescale styles</label>
|
||||
</div>
|
||||
<div data-tip="Move all existing towns to the 'largetown' burg group">
|
||||
<input id="submapPromoteTowns" class="checkbox" type="checkbox" />
|
||||
<label for="submapPromoteTowns" class="checkbox-label">Promote towns to largetowns</label>
|
||||
</div>
|
||||
<div data-tip="Add lakes in depressions. (Can be very slow on big landmasses!)">
|
||||
<div data-tip="Add lakes in depressions (can be very slow on big landmasses)">
|
||||
<input id="submapAddLakeInDepression" class="checkbox" type="checkbox" />
|
||||
<label for="submapAddLakeInDepression" class="checkbox-label">Add lakes in depressions (slow)</label>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
<div id="alert" style="display: none" class="dialog">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue