diff --git a/index.html b/index.html index 47d7dfc8..f2fd6a10 100644 --- a/index.html +++ b/index.html @@ -7913,7 +7913,7 @@ - + diff --git a/modules/dynamic/editors/states-editor.js b/modules/dynamic/editors/states-editor.js index b16246fd..81cac633 100644 --- a/modules/dynamic/editors/states-editor.js +++ b/modules/dynamic/editors/states-editor.js @@ -294,13 +294,13 @@ function statesEditorAddLines() { $body.innerHTML = lines; // update footer - byId("statesFooterStates").innerHTML = pack.states.filter(s => s.i && !s.removed).length; - byId("statesFooterCells").innerHTML = pack.cells.h.filter(h => h >= 20).length; - byId("statesFooterBurgs").innerHTML = totalBurgs; - byId("statesFooterArea").innerHTML = si(totalArea) + unit; - byId("statesFooterArea").dataset.area = totalArea; - byId("statesFooterPopulation").innerHTML = si(totalPopulation); - byId("statesFooterPopulation").dataset.population = totalPopulation; + statesFooterStates.innerHTML = pack.states.filter(s => s.i && !s.removed).length; + statesFooterCells.innerHTML = pack.cells.h.filter(h => h >= 20).length; + statesFooterBurgs.innerHTML = totalBurgs; + statesFooterArea.innerHTML = `${si(totalArea)} ${unit}`; + statesFooterPopulation.innerHTML = si(totalPopulation); + statesFooterArea.dataset.area = totalArea; + statesFooterPopulation.dataset.population = totalPopulation; // add listeners $body.querySelectorAll(":scope > div").forEach($line => { diff --git a/modules/ui/editors.js b/modules/ui/editors.js index 25a3c0ce..88af3f20 100644 --- a/modules/ui/editors.js +++ b/modules/ui/editors.js @@ -1197,3 +1197,9 @@ async function editStates() { const StateEditor = await import("../dynamic/editors/states-editor.js"); StateEditor.open(); } + +async function editCultures() { + if (customization) return; + const CulturesEditor = await import("../dynamic/editors/cultures-editor.js"); + CulturesEditor.open(); +}