mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.3.3
This commit is contained in:
parent
79e9a12d99
commit
aab1b8eac6
12 changed files with 152 additions and 109 deletions
|
|
@ -711,12 +711,13 @@ function editHeightmap() {
|
|||
|
||||
function setRange(event) {
|
||||
if (event.target.value !== "interval") return;
|
||||
const interval = prompt("Set a height interval. E.g. '17-20'. Avoid space, use hyphen as a separator");
|
||||
if (!interval || interval === "") return;
|
||||
const opt = document.createElement("option");
|
||||
opt.value = opt.innerHTML = interval;
|
||||
event.target.add(opt);
|
||||
event.target.value = interval;
|
||||
|
||||
prompt("Set a height interval. Avoid space, use hyphen as a separator", {default:"17-20"}, v => {
|
||||
const opt = document.createElement("option");
|
||||
opt.value = opt.innerHTML = v;
|
||||
event.target.add(opt);
|
||||
event.target.value = v;
|
||||
});
|
||||
}
|
||||
|
||||
function selectTemplate(e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue