Updated tooltips and fixed culture change from renaming locked burgs and group remove from deleting locked burgs

This commit is contained in:
Legogizmo 2021-03-27 20:24:54 -05:00
parent cb3890a68c
commit d25d8112da
5 changed files with 30 additions and 9 deletions

View file

@ -226,6 +226,15 @@ function toggleBurgLock(burg) {
b.lock = b.lock ? 0 : 1;
}
function showBurgLockTip(burg) {
const b = pack.burgs[burg];
if (b.lock) {
tip("Click to Unlock burg and allow it to be change by regeneration tools");
} else {
tip("Click to Lock burg and prevent changes by regeneration tools");
}
}
// draw legend box
function drawLegend(name, data) {
legend.selectAll("*").remove(); // fully redraw every time