mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 10:31:24 +01:00
refactor: drawBorders
This commit is contained in:
parent
e83726918b
commit
3b1e993e9a
11 changed files with 144 additions and 143 deletions
|
|
@ -53,7 +53,6 @@ export function resolveVersionConflicts(mapVersion) {
|
|||
BurgsAndStates.defineStateForms();
|
||||
Provinces.generate();
|
||||
Provinces.getPoles();
|
||||
drawBorders();
|
||||
if (!layerIsOn("toggleBorders")) $("#borders").fadeOut();
|
||||
if (!layerIsOn("toggleStates")) regions.attr("display", "none").selectAll("path").remove();
|
||||
|
||||
|
|
|
|||
|
|
@ -643,13 +643,10 @@ function stateRemove(stateId) {
|
|||
|
||||
debug.selectAll(".highlight").remove();
|
||||
|
||||
if (!layerIsOn("toggleStates")) toggleStates();
|
||||
else drawStates();
|
||||
|
||||
if (!layerIsOn("toggleBorders")) toggleBorders();
|
||||
else drawBorders();
|
||||
|
||||
if (layerIsOn("toggleStates")) drawStates();
|
||||
if (layerIsOn("toggleBorders")) drawBorders();
|
||||
if (layerIsOn("toggleProvinces")) drawProvinces();
|
||||
|
||||
refreshStatesEditor();
|
||||
}
|
||||
|
||||
|
|
@ -844,13 +841,13 @@ function recalculateStates(must) {
|
|||
BurgsAndStates.expandStates();
|
||||
Provinces.generate();
|
||||
Provinces.getPoles();
|
||||
if (!layerIsOn("toggleStates")) toggleStates();
|
||||
else drawStates();
|
||||
if (!layerIsOn("toggleBorders")) toggleBorders();
|
||||
else drawBorders();
|
||||
if (layerIsOn("toggleProvinces")) drawProvinces();
|
||||
BurgsAndStates.getPoles();
|
||||
|
||||
if (layerIsOn("toggleStates")) drawStates();
|
||||
if (layerIsOn("toggleBorders")) drawBorders();
|
||||
if (layerIsOn("toggleProvinces")) drawProvinces();
|
||||
if (adjustLabels.checked) drawStateLabels();
|
||||
|
||||
refreshStatesEditor();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue