mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
feat: make lined icons work for all elements, v1.107.0
This commit is contained in:
parent
7b8ffd025f
commit
d51deffdac
15 changed files with 283 additions and 245 deletions
|
|
@ -458,20 +458,7 @@ async function parseLoadedData(data, mapVersion) {
|
|||
if (isVisible(ruler)) turnOn("toggleRulers");
|
||||
if (isVisible(scaleBar)) turnOn("toggleScaleBar");
|
||||
if (isVisibleNode(byId("vignette"))) turnOn("toggleVignette");
|
||||
|
||||
window.uniquePictures = [];
|
||||
window.iconReload = true;
|
||||
$("#armies").each(function(id, armyGroup) {
|
||||
$(armyGroup).children().each(function(aId, army){
|
||||
$(army).children().each(function(rId, regiment){
|
||||
if($(regiment).find(".regimentImage").length !== 0 && $(regiment).find(".regimentImage").attr('href')) {
|
||||
let icon = $(regiment).find(".regimentImage").attr('href');
|
||||
window.uniquePictures.push(icon);
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
window.uniquePictures = [...new Set(uniquePictures)];
|
||||
|
||||
getCurrentPreset();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue