mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 20:41:23 +01:00
effective distanceScale
This commit is contained in:
parent
1b7fe659c1
commit
01cc1eec30
5 changed files with 23 additions and 12 deletions
|
|
@ -33,8 +33,8 @@ const generateSubmap = debounce(async function () {
|
|||
}
|
||||
|
||||
// fix scale
|
||||
distanceScaleInput.value = distanceScaleOutput.value = distanceScaleOutput.value / scale;
|
||||
populationRateInput.value = populationRateOutput.value = populationRateOutput.value / scale;
|
||||
distanceScale = distanceScaleInput.value = distanceScaleOutput.value = distanceScaleOutput.value / scale;
|
||||
populationRate = populationRateInput.value = populationRateOutput.value = populationRateOutput.value / scale;
|
||||
customization = 0;
|
||||
|
||||
undraw();
|
||||
|
|
|
|||
|
|
@ -55,6 +55,7 @@ function editUnits() {
|
|||
}
|
||||
|
||||
function changeDistanceScale() {
|
||||
distanceScale = +document.getElementById("distanceScaleInput").value;
|
||||
drawScaleBar();
|
||||
calculateFriendlyGridSize();
|
||||
}
|
||||
|
|
@ -95,6 +96,7 @@ function editUnits() {
|
|||
|
||||
function restoreDefaultUnits() {
|
||||
// distanceScale
|
||||
distanceScale = 3;
|
||||
document.getElementById("distanceScaleOutput").value = 3;
|
||||
document.getElementById("distanceScaleInput").value = 3;
|
||||
unlock("distanceScale");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue