mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
feat: burg-groups - save settings between sessions
This commit is contained in:
parent
95b7ed9ea4
commit
5ed31dd8bf
4 changed files with 11 additions and 1 deletions
|
|
@ -313,6 +313,7 @@ function editBurgGroups() {
|
|||
}, {});
|
||||
return group;
|
||||
});
|
||||
localStorage.setItem("burg-groups", JSON.stringify(options.burgs.groups));
|
||||
|
||||
// put burgs to new groups
|
||||
const validBurgs = pack.burgs.filter(b => b.i && !b.removed);
|
||||
|
|
@ -321,6 +322,7 @@ function editBurgGroups() {
|
|||
|
||||
if (layerIsOn("toggleBurgIcons")) drawBurgIcons();
|
||||
if (layerIsOn("toggleLabels")) drawBurgLabels();
|
||||
if (byId("burgsOverviewRefresh")?.offsetParent) burgsOverviewRefresh.click();
|
||||
|
||||
$("#burgGroupsEditor").dialog("close");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue