mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
fix: religions and cultures are not highlightable from editor
This commit is contained in:
parent
9215a01548
commit
182c6d558d
6 changed files with 30 additions and 26 deletions
|
|
@ -303,10 +303,10 @@ function statesEditorAddLines() {
|
|||
byId("statesFooterPopulation").dataset.population = totalPopulation;
|
||||
|
||||
// add listeners
|
||||
$body.querySelectorAll("div.states").forEach(el => {
|
||||
el.on("click", selectStateOnLineClick);
|
||||
el.on("mouseenter", stateHighlightOn);
|
||||
el.on("mouseleave", stateHighlightOff);
|
||||
$body.querySelectorAll(":scope > div").forEach($line => {
|
||||
$line.on("mouseenter", stateHighlightOn);
|
||||
$line.on("mouseleave", stateHighlightOff);
|
||||
$line.on("click", selectStateOnLineClick);
|
||||
});
|
||||
|
||||
if ($body.dataset.type === "percentage") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue