|
274 | 274 | <div id="loading"> |
275 | 275 | <div id="titleName"><t data-t="titleName">Azgaar's</t></div> |
276 | 276 | <div id="title"><t data-t="title">Fantasy Map Generator</t></div> |
277 | | - <div id="version"><t data-t="version">v. </t>1.73</div> |
| 277 | + <div id="version"><t data-t="version">v. </t>1.8</div> |
278 | 278 | <p id="loading-text"><t data-t="loading">LOADING</t><span>.</span><span>.</span><span>.</span></p> |
279 | 279 | </div> |
280 | 280 |
|
|
1247 | 1247 | <input id="pointsInput" type="range" min="1" max="13" value="4" data-cells="10000" /> |
1248 | 1248 | </td> |
1249 | 1249 | <td> |
1250 | | - <output id="pointsOutput_formatted" style="color: #053305">10K</output> |
| 1250 | + <output id="pointsOutputFormatted" style="color: #053305">10K</output> |
1251 | 1251 | </td> |
1252 | 1252 | </tr> |
1253 | 1253 |
|
|
1727 | 1727 | </div> |
1728 | 1728 |
|
1729 | 1729 | <p>Click to create a new map:</p> |
1730 | | - <div id="resamplers"> |
1731 | | - <button data-tip="Click to generate new (sub)map from the current viewport" onclick="UISubmap.openSubmapOptions()">Submap</button> |
1732 | | - <button data-tip="Click to resample (transform) your map to different cellcount" onclick="UISubmap.openRemapOptions()">Resample</button> |
| 1730 | + <div> |
| 1731 | + <button id="openSubmapMenu" data-tip="Click to generate a submap from the current viewport">Submap</button> |
| 1732 | + <button id="openResampleMenu" data-tip="Click to transform the map">Resample</button> |
1733 | 1733 | </div> |
1734 | 1734 | </div> |
1735 | 1735 |
|
|
4444 | 4444 | <div id="tileStatus" style="background-color: #33333310; font-style: italic"></div> |
4445 | 4445 | </div> |
4446 | 4446 |
|
4447 | | - <div id="remapOptionsDialog" style="display: none; max-width: 300px" class="dialog"> |
4448 | | - <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> |
4449 | | - <table> |
4450 | | - <tr> |
4451 | | - <td>Points number</td> |
4452 | | - <td> |
4453 | | - <input |
4454 | | - id="submapPointsInput" |
4455 | | - autocomplete="off" |
4456 | | - type="range" |
4457 | | - min="1" |
4458 | | - max="13" |
4459 | | - value="4" |
4460 | | - data-cells="10000" |
4461 | | - oninput="document.getElementById('submapPointsOutput').value=cellsDensityConstants[+this.value]/1000 + 'K'; event.stopPropagation()" |
4462 | | - /> |
4463 | | - </td> |
4464 | | - <td> |
4465 | | - <output id="submapPointsOutput" style="color: #053305">10K</output> |
4466 | | - </td> |
4467 | | - </tr> |
4468 | | - <tr> |
4469 | | - <td>Shift</td> |
4470 | | - <td colspan="2"> |
4471 | | - X: <input id="submapShiftX" autocomplete="off" min="0" size="4" value="0"/> |
4472 | | - Y: <input id="submapShiftY" autocomplete="off" min="0" size="4" value="0"/> |
4473 | | - </td> |
4474 | | - </tr> |
4475 | | - <tr> |
4476 | | - <td>Rotate <i class="icon-cw"></i></td> |
4477 | | - <td> |
4478 | | - <input |
4479 | | - id="submapRotationAngle" |
4480 | | - autocomplete="off" |
4481 | | - type="range" |
4482 | | - min="0" |
4483 | | - max="359" |
4484 | | - value="0" |
4485 | | - oninput="document.getElementById('submapRotationAngleOutput').value=+this.value + '°'" |
4486 | | - /> |
4487 | | - </td> |
4488 | | - <td> |
4489 | | - <output id="submapRotationAngleOutput" style="color: #053305">0°</output> |
4490 | | - </td> |
4491 | | - </tr> |
4492 | | - <tr> |
4493 | | - <td>Mirror</td> |
4494 | | - <td colspan="2"> |
4495 | | - <input type="checkbox" class="checkbox" id="submapMirrorH" /> |
4496 | | - <label for="submapMirrorH" class="checkbox-label" >Horizontally</label> |
4497 | | - |
4498 | | - <input type="checkbox" class="checkbox" id="submapMirrorV" /> |
4499 | | - <label for="submapMirrorV" class="checkbox-label">Vertically</label> |
4500 | | - </td> |
4501 | | - </tr> |
4502 | | - </table> |
| 4447 | + <div id="resampleDialog" style="display: none" class="dialog"> |
| 4448 | + <p style="font-weight: bold"> |
| 4449 | + 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 |
| 4450 | + as a .map file first! |
| 4451 | + </p> |
| 4452 | + <div style="display: grid; grid-template-columns: 2fr 3fr; grid-template-rows: repeat(4, 1fr); align-items: center; padding-left: 0.5em"> |
| 4453 | + <div>Points number</div> |
| 4454 | + <div> |
| 4455 | + <input id="submapPointsInput" type="range" min="1" max="13" value="4" /> |
| 4456 | + <output id="submapPointsOutputFormatted" style="color: #053305">10K</output> |
| 4457 | + </div> |
| 4458 | + |
| 4459 | + <div>Shift</div> |
| 4460 | + <div> |
| 4461 | + <label>X: <input id="submapShiftX" type="number" min="0" size="4" value="0" /></label> |
| 4462 | + <label>Y: <input id="submapShiftY" type="number" min="0" size="4" value="0" /></label> |
| 4463 | + </div> |
| 4464 | + |
| 4465 | + <div>Rotate</div> |
| 4466 | + <div> |
| 4467 | + <input id="submapAngleInput" type="range" min="0" max="359" value="0" /> |
| 4468 | + <output id="submapAngleOutput">0</output>° |
| 4469 | + </div> |
| 4470 | + |
| 4471 | + <div>Mirror</div> |
| 4472 | + <div> |
| 4473 | + <input type="checkbox" class="checkbox" id="submapMirrorH" /> |
| 4474 | + <label for="submapMirrorH" class="checkbox-label">horizontally</label> |
| 4475 | + |
| 4476 | + <input type="checkbox" class="checkbox" id="submapMirrorV" /> |
| 4477 | + <label for="submapMirrorV" class="checkbox-label">vertically</label> |
| 4478 | + </div> |
| 4479 | + </div> |
4503 | 4480 | </div> |
4504 | | - <div id="submapOptionsDialog" style="display: none; max-width: 300px" class="dialog"> |
4505 | | - <p style="font-style: italic; color: red; font-weight: bold"> |
4506 | | - Warning! This operation is destructive and irreversible. Don't forget to save your original map! |
| 4481 | + |
| 4482 | + <div id="submapOptionsDialog" style="display: none" class="dialog"> |
| 4483 | + <p style="font-weight: bold"> |
| 4484 | + 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 |
| 4485 | + as a .map file first! |
4507 | 4486 | </p> |
4508 | | - <p><em>Settings to be changed:</em> Population rate, map pixel size.</p> |
4509 | | - <p><em>Data to be copied:</em> Heightmap, Biome, Religion, Population, Precipitation, Cultures, States, Provinces, Regiments (military), Markers.</p> |
4510 | | - <p><em>Data to be destroyed (regenerated):</em> Zones, Roads, Rivers (mostly regenerate at the same place).</p> |
4511 | | - <p>Remapping Burgs (cities) may be imprecise, you will need to fix missing or wrongly mapped burgs manually.</p> |
4512 | | - <p>Lock remapped items for:</p> |
4513 | | - <div data-tip="Lock all markers copied from the original map."> |
| 4487 | + |
| 4488 | + <p>Settings to be changed: population rate, map pixel size</p> |
| 4489 | + <p>Data to be copied: heightmap, biomes, religions, population, precipitation, cultures, states, provinces, military regiments</p> |
| 4490 | + <p>Data to be regenerated: zones, roads, rivers</p> |
| 4491 | + <p>Burgs may be remapped incorrectly, manual change is required</p> |
| 4492 | + |
| 4493 | + <p>Keep data for:</p> |
| 4494 | + <div data-tip="Lock all markers copied from the original map"> |
4514 | 4495 | <input id="submapLockMarkers" class="checkbox" type="checkbox" checked /> |
4515 | 4496 | <label for="submapLockMarkers" class="checkbox-label">Markers</label> |
4516 | 4497 | </div> |
4517 | | - <div data-tip="Lock all burgs copied from the original map."> |
| 4498 | + <div data-tip="Lock all burgs copied from the original map"> |
4518 | 4499 | <input id="submapLockBurgs" class="checkbox" type="checkbox" checked /> |
4519 | | - <label for="submapLockBurgs" class="checkbox-label">Burgs (cities)</label> |
| 4500 | + <label for="submapLockBurgs" class="checkbox-label">Burgs</label> |
4520 | 4501 | </div> |
4521 | 4502 |
|
4522 | | - <p>Extra / experimental features:</p> |
4523 | | - <div data-tip="Rivers on the parent map errode land (helps to get similar river network.)"> |
| 4503 | + <p>Experimental features:</p> |
| 4504 | + <div data-tip="Rivers on the parent map will errode land (helps to get similar river network)"> |
4524 | 4505 | <input id="submapDepressRivers" class="checkbox" type="checkbox" /> |
4525 | | - <label for="submapDepressRivers" class="checkbox-label">Errode riverbeds.</label> |
| 4506 | + <label for="submapDepressRivers" class="checkbox-label">Errode riverbeds</label> |
4526 | 4507 | </div> |
4527 | | - <div data-tip="Rescale styles (burg labels, emblem size) to match the new scale."> |
4528 | | - <input id="submapRescaleStyles" class="checkbox" type="checkbox" checked/> |
4529 | | - <label for="submapRescaleStyles" class="checkbox-label">Rescale Styles</label> |
| 4508 | + <div data-tip="Rescale styles (burg labels, emblem size) to match the new scale"> |
| 4509 | + <input id="submapRescaleStyles" class="checkbox" type="checkbox" checked /> |
| 4510 | + <label for="submapRescaleStyles" class="checkbox-label">Rescale styles</label> |
4530 | 4511 | </div> |
4531 | 4512 | <div data-tip="Move all existing towns to the 'largetown' burg group"> |
4532 | 4513 | <input id="submapPromoteTowns" class="checkbox" type="checkbox" /> |
4533 | 4514 | <label for="submapPromoteTowns" class="checkbox-label">Promote towns to largetowns</label> |
4534 | 4515 | </div> |
4535 | | - <div data-tip="Add lakes in depressions. (Can be very slow on big landmasses!)"> |
| 4516 | + <div data-tip="Add lakes in depressions (can be very slow on big landmasses)"> |
4536 | 4517 | <input id="submapAddLakeInDepression" class="checkbox" type="checkbox" /> |
4537 | 4518 | <label for="submapAddLakeInDepression" class="checkbox-label">Add lakes in depressions (slow)</label> |
4538 | 4519 | </div> |
4539 | | - <hr /> |
4540 | 4520 | </div> |
4541 | 4521 |
|
4542 | 4522 | <div id="alert" style="display: none" class="dialog"> |
|
0 commit comments