add info text

This commit is contained in:
Mészáros Gergely 2022-03-31 22:29:06 +02:00
parent 385fdca868
commit 6c2c024333
2 changed files with 14 additions and 6 deletions

View file

@ -3664,12 +3664,16 @@
</div> </div>
<div id="submapOptionsDialog" style="display: none; max-width:300px;" class="dialog"> <div id="submapOptionsDialog" style="display: none; max-width:300px;" class="dialog">
<p style="font-style: italic; color: red; font-weight:bold;">Original map will be destroyed! Don't forget to save your work!</p> <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!</p>
<p>Population rate (Units editor -> population) and map pixel size will <p>Population rate (Units editor -> population) and map pixel size will
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>
<p> <p>
Automatically copied: Heightmap, Biome, Precipitation, Cultures, States, Provinces, Regiments (military). <em>Data to be copied:</em> Heightmap, Biome, Religion, Population, Precipitation, Cultures, States, Provinces, Regiments (military).
</p>
<p>
<em>Data to be destroyed (regenerated):</em> Markers, Zones, Rivers (mostly regenerate at the same place).
Remapping Burgs (cities) is not 100% guaranteed, you may need to fix missing or wrongly mapped burgs manually.
</p> </p>
<hr /> <hr />
<p>Remap (copy) the following features to the new map:</p> <p>Remap (copy) the following features to the new map:</p>

View file

@ -210,9 +210,8 @@ window.Submap = (function () {
// TODO: normalize according to the base-map // TODO: normalize according to the base-map
rankCells(); rankCells();
// transfer basemap cultures stage("Porting Cultures");
pack.cultures = parentMap.pack.cultures; pack.cultures = parentMap.pack.cultures;
// fix culture centers // fix culture centers
const validCultures = new Set(pack.cells.culture); const validCultures = new Set(pack.cells.culture);
pack.cultures.forEach((c, i) => { pack.cultures.forEach((c, i) => {
@ -292,8 +291,13 @@ window.Submap = (function () {
Military.redraw(); Military.redraw();
stage("markers and zones (if requested)."); stage("markers and zones (if requested).");
if (options.addMarkers) Markers.generate(); if (!options.copyMarkers) Markers.generate();
if (options.addZones) addZones(); else {
// TODO
pack.markers = [];
}
if (!options.copyZones) addZones();
Names.getMapName(); Names.getMapName();
stage("Submap done."); stage("Submap done.");