mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 12:31:24 +01:00
fix ugly GUI (2 digit roundoff)
This commit is contained in:
parent
1bf71c25fa
commit
f71766d8b4
1 changed files with 6 additions and 2 deletions
|
|
@ -22,6 +22,10 @@ function openRemapOptions() {
|
|||
});
|
||||
}
|
||||
|
||||
const resampleCurrentMap = debounce(async function () {
|
||||
WARN && console.warn("Resampling current map");
|
||||
});
|
||||
|
||||
const generateSubmap = debounce(async function () {
|
||||
// Create submap from the current map
|
||||
// submap limits defined by the current window size (canvas viewport)
|
||||
|
|
@ -58,8 +62,8 @@ const generateSubmap = debounce(async function () {
|
|||
document.getElementById("latitudeInput").value = latitudeOutput.value;
|
||||
|
||||
// fix scale
|
||||
distanceScale = distanceScaleInput.value = distanceScaleOutput.value = distanceScaleOutput.value / scale;
|
||||
populationRate = populationRateInput.value = populationRateOutput.value = populationRateOutput.value / scale;
|
||||
distanceScaleInput.value = distanceScaleOutput.value = rn(distanceScale = distanceScaleOutput.value / scale, 2);
|
||||
populationRateInput.value = populationRateOutput.value = rn(populationRate = populationRateOutput.value / scale, 2);
|
||||
customization = 0;
|
||||
|
||||
undraw();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue