mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
Added a lock function to burgs that will prevent them from being regenerated
This commit is contained in:
parent
c9b34866f9
commit
cb3890a68c
6 changed files with 57 additions and 9 deletions
|
|
@ -221,6 +221,11 @@ function togglePort(burg) {
|
|||
.attr("width", size).attr("height", size);
|
||||
}
|
||||
|
||||
function toggleBurgLock(burg) {
|
||||
const b = pack.burgs[burg];
|
||||
b.lock = b.lock ? 0 : 1;
|
||||
}
|
||||
|
||||
// draw legend box
|
||||
function drawLegend(name, data) {
|
||||
legend.selectAll("*").remove(); // fully redraw every time
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue