mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
v1.5.54 - fixed 592
This commit is contained in:
parent
c2edda6a4a
commit
41779d9577
2 changed files with 10 additions and 1 deletions
|
|
@ -1086,6 +1086,15 @@ function parseLoadedData(data) {
|
||||||
emblems.append("g").attr("id", "stateEmblems");
|
emblems.append("g").attr("id", "stateEmblems");
|
||||||
regenerateEmblems();
|
regenerateEmblems();
|
||||||
toggleEmblems();
|
toggleEmblems();
|
||||||
|
|
||||||
|
// v 1.5 changed releif icons data
|
||||||
|
terrain.selectAll("use").each(function() {
|
||||||
|
const type = this.getAttribute("data-type") || this.getAttribute("xlink:href");
|
||||||
|
this.removeAttribute("xlink:href");
|
||||||
|
this.removeAttribute("data-type");
|
||||||
|
this.removeAttribute("data-size");
|
||||||
|
this.setAttribute("href", type);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}()
|
}()
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ function editReliefIcon() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateReliefIconSelected() {
|
function updateReliefIconSelected() {
|
||||||
const type = elSelected.attr("href");
|
const type = elSelected.attr("href") || elSelected.attr("data-type");
|
||||||
const button = reliefIconsDiv.querySelector("svg[data-type='"+type+"']");
|
const button = reliefIconsDiv.querySelector("svg[data-type='"+type+"']");
|
||||||
|
|
||||||
reliefIconsDiv.querySelectorAll("svg.pressed").forEach(b => b.classList.remove("pressed"));
|
reliefIconsDiv.querySelectorAll("svg.pressed").forEach(b => b.classList.remove("pressed"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue