resample dialog

This commit is contained in:
GoteGuru 2022-04-06 17:43:31 +00:00
parent f71766d8b4
commit 2cec7e930b

View file

@ -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>