mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
Added 1k, 2k, and 5k option for number of points
This commit is contained in:
parent
667006db86
commit
b2b46c4d39
4 changed files with 41 additions and 25 deletions
|
|
@ -276,9 +276,14 @@ function copyMapURL() {
|
|||
}
|
||||
|
||||
function changeCellsDensity(value) {
|
||||
densityOutput.value = value * 10 + "K";
|
||||
if (value > 5) densityOutput.style.color = "#b12117";
|
||||
else if (value > 1) densityOutput.style.color = "#dfdf12";
|
||||
switch (value) {
|
||||
case 1 : densityOutput.value = "1K"; break;
|
||||
case 2 : densityOutput.value = "2K"; break;
|
||||
case 3 : densityOutput.value = "5K"; break;
|
||||
default: densityOutput.value = (value-3) * 10 + "K";
|
||||
}
|
||||
if (value > 9) densityOutput.style.color = "#b12117";
|
||||
else if (value > 4) densityOutput.style.color = "#dfdf12";
|
||||
else densityOutput.style.color = "#038603";
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue