mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 20:41:23 +01:00
resample dialog
This commit is contained in:
parent
f71766d8b4
commit
2cec7e930b
1 changed files with 13 additions and 12 deletions
25
index.html
25
index.html
|
|
@ -3665,6 +3665,19 @@
|
||||||
<div id="tileStatus" style="background-color: #33333310; font-style: italic"></div>
|
<div id="tileStatus" style="background-color: #33333310; font-style: italic"></div>
|
||||||
</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>
|
||||||
|
<td>Points number</td>
|
||||||
|
<td>
|
||||||
|
<input id="submapPointsInput" 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>
|
||||||
|
</table>
|
||||||
|
<button id="start" data-tip="Start resampling" class="options" onclick="resampleCurrentMap()">Resample</button>
|
||||||
|
</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;">Warning! This operation is destructive and irreversible. Don't forget to save your original map!</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>
|
<p>
|
||||||
|
|
@ -3706,18 +3719,6 @@
|
||||||
<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>
|
||||||
|
|
||||||
<div id="remapOptionsDialog" style="display: none; max-width:300px;" class="dialog">
|
|
||||||
WIP (not working yet)
|
|
||||||
<table>
|
|
||||||
<td>Points number</td>
|
|
||||||
<td>
|
|
||||||
<input id="submapPointsInput" type="range" min=1 max=13 value=4 data-cells=10000 oninput="event => {document.getElementById('submapPointsOutput').value=cellsDensityConstants[+this.value]/1000 + 'K'; event.stopPropagation()}">
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<output id="submapPointsOutput" style="color: #053305">10K</output>
|
|
||||||
</td>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div id="alert" style="display: none" class="dialog">
|
<div id="alert" style="display: none" class="dialog">
|
||||||
<p id="alertMessage">Warning!</p>
|
<p id="alertMessage">Warning!</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue