mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-23 04:21:24 +01:00
update on click add type
This commit is contained in:
parent
c0fa915af8
commit
3bd3290296
1 changed files with 1 additions and 5 deletions
|
|
@ -560,22 +560,18 @@ function editZones() {
|
||||||
$("#zonesTypes").dialog({
|
$("#zonesTypes").dialog({
|
||||||
title: "Add zones and types",
|
title: "Add zones and types",
|
||||||
width: fitContent(),
|
width: fitContent(),
|
||||||
close: closeZoneTypesEditor,
|
|
||||||
position: {my: "center", at: "center", of: "svg"},
|
position: {my: "center", at: "center", of: "svg"},
|
||||||
});
|
});
|
||||||
zonesTypesAddLines();
|
zonesTypesAddLines();
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeZoneTypesEditor() {
|
|
||||||
zonesEditorAddLines();
|
|
||||||
}
|
|
||||||
|
|
||||||
function addZonesType() {
|
function addZonesType() {
|
||||||
let zoneType = zonesNewTypeInput.value;
|
let zoneType = zonesNewTypeInput.value;
|
||||||
if (!zoneTypes.includes(zoneType)) { zoneTypes.push(zoneType); }
|
if (!zoneTypes.includes(zoneType)) { zoneTypes.push(zoneType); }
|
||||||
zonesNewTypeInput.value = "";
|
zonesNewTypeInput.value = "";
|
||||||
zonesTypesAddLines();
|
zonesTypesAddLines();
|
||||||
zonesTypesFooterNumber.innerHTML = zoneTypes.length;
|
zonesTypesFooterNumber.innerHTML = zoneTypes.length;
|
||||||
|
zonesEditorAddLines();
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeZoneType(zoneType) {
|
function removeZoneType(zoneType) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue