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 () {
|
const generateSubmap = debounce(async function () {
|
||||||
// Create submap from the current map
|
// Create submap from the current map
|
||||||
// submap limits defined by the current window size (canvas viewport)
|
// 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;
|
document.getElementById("latitudeInput").value = latitudeOutput.value;
|
||||||
|
|
||||||
// fix scale
|
// fix scale
|
||||||
distanceScale = distanceScaleInput.value = distanceScaleOutput.value = distanceScaleOutput.value / scale;
|
distanceScaleInput.value = distanceScaleOutput.value = rn(distanceScale = distanceScaleOutput.value / scale, 2);
|
||||||
populationRate = populationRateInput.value = populationRateOutput.value = populationRateOutput.value / scale;
|
populationRateInput.value = populationRateOutput.value = rn(populationRate = populationRateOutput.value / scale, 2);
|
||||||
customization = 0;
|
customization = 0;
|
||||||
|
|
||||||
undraw();
|
undraw();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue