mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
state labels mode
This commit is contained in:
parent
6de70f5897
commit
4935d506b6
5 changed files with 58 additions and 26 deletions
|
|
@ -165,6 +165,7 @@ optionsContent.addEventListener("change", function (event) {
|
|||
if (id === "shapeRendering") viewbox.attr("shape-rendering", value);
|
||||
else if (id === "yearInput") changeYear();
|
||||
else if (id === "eraInput") changeEra();
|
||||
else if (id === "stateLabelsModeInput") options.stateLabelsMode = value;
|
||||
});
|
||||
|
||||
optionsContent.addEventListener("click", function (event) {
|
||||
|
|
@ -533,6 +534,8 @@ function applyStoredOptions() {
|
|||
|
||||
// set shape rendering
|
||||
viewbox.attr("shape-rendering", shapeRendering.value);
|
||||
|
||||
options.stateLabelsMode = stateLabelsModeInput.value;
|
||||
}
|
||||
|
||||
// randomize options if randomization is allowed (not locked or options='default')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue