mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 20:41:23 +01:00
Update submap gui
This commit is contained in:
parent
9d96135ba4
commit
1a62cc97e2
2 changed files with 32 additions and 23 deletions
41
index.html
41
index.html
|
|
@ -3667,34 +3667,41 @@
|
||||||
be automatically updated according to the current scale factor. If you'd like
|
be automatically updated according to the current scale factor. If you'd like
|
||||||
to generate a new parent-map, <b>don't forget to reset them!</b> Options are interpreted as usual.</p>
|
to generate a new parent-map, <b>don't forget to reset them!</b> Options are interpreted as usual.</p>
|
||||||
<hr />
|
<hr />
|
||||||
|
<p>Remap (copy) features:</p>
|
||||||
<div data-tip="Copy burgs from old map. Regenerate burgs if not checked." >
|
<div data-tip="Copy burgs from old map. Regenerate burgs if not checked." >
|
||||||
<input id="submapCopyBurgs" class="checkbox" type="checkbox" checked>
|
<input id="submapCopyBurgs" class="checkbox" type="checkbox" checked>
|
||||||
<label for="submapCopyBurgs" class="checkbox-label">Copy cities</label>
|
<label for="submapCopyBurgs" class="checkbox-label">Copy cities</label>
|
||||||
</div>
|
</div>
|
||||||
|
<div data-tip="Copy Rivers from the original map, regenerate otherwise (see errode riverbeds)." >
|
||||||
|
<input id="submapCopyZones" class="checkbox" type="checkbox" checked>
|
||||||
|
<label for="submapCopyZones" class="checkbox-label">Add Zones</label>
|
||||||
|
</div>
|
||||||
|
<div data-tip="Copy military data from the original map. Regenerate military if not checked." >
|
||||||
|
<input id="submapCopyMilitary" class="checkbox" type="checkbox">
|
||||||
|
<label for="submapCopyMilitary" class="checkbox-label">Add Military</label>
|
||||||
|
</div>
|
||||||
|
<div data-tip="Copy markers from the original map. Regenerate markers if not checked." >
|
||||||
|
<input id="submapCopyMarkers" class="checkbox" type="checkbox" checked>
|
||||||
|
<label for="submapCopyMarkers" class="checkbox-label">Add Markers</label>
|
||||||
|
</div>
|
||||||
|
<div data-tip="Copy Zones from the original map. Regenerate Zones if not checked." >
|
||||||
|
<input id="submapCopyZones" class="checkbox" type="checkbox" checked>
|
||||||
|
<label for="submapCopyZones" class="checkbox-label">Add Zones</label>
|
||||||
|
</div>
|
||||||
|
<hr />
|
||||||
|
<p>Extra / experimental features:</p>
|
||||||
|
<div data-tip="Rivers on the parent map errode land (helps to get similar river network.)" >
|
||||||
|
<input id="submapDepressRivers" class="checkbox" type="checkbox">
|
||||||
|
<label for="submapDepressRivers" class="checkbox-label">Errode riverbeds.</label>
|
||||||
|
</div>
|
||||||
<div data-tip="All small cities of the parent map will be promoted to Capitals." >
|
<div data-tip="All small cities of the parent map will be promoted to Capitals." >
|
||||||
<input id="submapPromoteTown" class="checkbox" type="checkbox">
|
<input id="submapPromoteTown" class="checkbox" type="checkbox">
|
||||||
<label for="submapPromoteTown" class="checkbox-label">Promote towns to cities.</label>
|
<label for="submapPromoteTown" class="checkbox-label">Promote towns to cities.</label>
|
||||||
</div>
|
</div>
|
||||||
<div data-tip="Rivers on the parent map errode land (helps to get similar river network.)" >
|
<div data-tip="Add lakes in depressions. (Can be very slow on big landmasses!)" >
|
||||||
<input id="submapDepressRivers" class="checkbox" type="checkbox">
|
|
||||||
<label for="submapDepressRivers" class="checkbox-label">Errode riverbeds.</label>
|
|
||||||
</div>
|
|
||||||
<div data-tip="Add lakes in depressions. (Can be very slow on big landmass!)" >
|
|
||||||
<input id="submapAddLakeInDepression" class="checkbox" type="checkbox">
|
<input id="submapAddLakeInDepression" class="checkbox" type="checkbox">
|
||||||
<label for="submapAddLakeInDepression" class="checkbox-label">Add lakes in depressions.</label>
|
<label for="submapAddLakeInDepression" class="checkbox-label">Add lakes in depressions.</label>
|
||||||
</div>
|
</div>
|
||||||
<div data-tip="Regenerate military data in submap." >
|
|
||||||
<input id="submapAddMilitary" class="checkbox" type="checkbox">
|
|
||||||
<label for="submapAddMilitary" class="checkbox-label">Add Military</label>
|
|
||||||
</div>
|
|
||||||
<div data-tip="Regenerate markers data in submap." >
|
|
||||||
<input id="submapAddMarkers" class="checkbox" type="checkbox" checked>
|
|
||||||
<label for="submapAddMarkers" class="checkbox-label">Add Markers</label>
|
|
||||||
</div>
|
|
||||||
<div data-tip="Regenerate military data in submap." >
|
|
||||||
<input id="submapAddZones" class="checkbox" type="checkbox" checked>
|
|
||||||
<label for="submapAddZones" class="checkbox-label">Add Zones</label>
|
|
||||||
</div>
|
|
||||||
<hr/>
|
<hr/>
|
||||||
<button id="start" data-tip="Start submap resampling" class="options" onclick="generateSubmap()">Generate</button>
|
<button id="start" data-tip="Start submap resampling" class="options" onclick="generateSubmap()">Generate</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -21,13 +21,15 @@ const generateSubmap = debounce(async function () {
|
||||||
closeDialogs("#worldConfigurator, #options3d");
|
closeDialogs("#worldConfigurator, #options3d");
|
||||||
const checked = id => Boolean(document.getElementById(id).checked)
|
const checked = id => Boolean(document.getElementById(id).checked)
|
||||||
const options = {
|
const options = {
|
||||||
promoteTown: checked("submapPromoteTown"),
|
|
||||||
depressRivers: checked("submapDepressRivers"),
|
|
||||||
copyBurgs: checked("submapCopyBurgs"),
|
copyBurgs: checked("submapCopyBurgs"),
|
||||||
|
copyMilitary: checked("submapCopyMilitary"),
|
||||||
|
copyMarkers: checked("submapCopyMarkers"),
|
||||||
|
copyZones: checked("submapCopyZones"),
|
||||||
|
copyZones: checked("submapCopyRivers"),
|
||||||
|
|
||||||
|
depressRivers: checked("submapDepressRivers"),
|
||||||
addLakesInDepressions: checked("submapAddLakeInDepression"),
|
addLakesInDepressions: checked("submapAddLakeInDepression"),
|
||||||
addMilitary: checked("submapAddMilitary"),
|
promoteTown: checked("submapPromoteTown"),
|
||||||
addMarkers: checked("submapAddMarkers"),
|
|
||||||
addZones: checked("submapAddZones"),
|
|
||||||
smoothHeightMap: scale > 2,
|
smoothHeightMap: scale > 2,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue