mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
v1.5.20 - don't store default style
This commit is contained in:
parent
fbdaf3089b
commit
4fffb33e19
3 changed files with 29 additions and 38 deletions
|
|
@ -197,7 +197,6 @@
|
||||||
// TODO
|
// TODO
|
||||||
// seafaring etc
|
// seafaring etc
|
||||||
|
|
||||||
// style settings for emblems layer
|
|
||||||
// define emblems layer style for all styles
|
// define emblems layer style for all styles
|
||||||
// test in FF
|
// test in FF
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1007,13 +1007,6 @@ function parseLoadedData(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (version < 1.22) {
|
if (version < 1.22) {
|
||||||
// v 1.21 had incorrect style formatting
|
|
||||||
localStorage.removeItem("styleClean");
|
|
||||||
localStorage.removeItem("styleGloom");
|
|
||||||
localStorage.removeItem("styleAncient");
|
|
||||||
localStorage.removeItem("styleMonochrome");
|
|
||||||
addDefaulsStyles();
|
|
||||||
|
|
||||||
// v 1.22 changed state neighbors from Set object to array
|
// v 1.22 changed state neighbors from Set object to array
|
||||||
BurgsAndStates.collectStatistics();
|
BurgsAndStates.collectStatistics();
|
||||||
}
|
}
|
||||||
|
|
@ -1078,6 +1071,12 @@ function parseLoadedData(data) {
|
||||||
emblems.append("g").attr("id", "stateEmblems");
|
emblems.append("g").attr("id", "stateEmblems");
|
||||||
regenerateEmblems();
|
regenerateEmblems();
|
||||||
toggleEmblems();
|
toggleEmblems();
|
||||||
|
|
||||||
|
// not need to store default styles from v 1.5
|
||||||
|
localStorage.removeItem("styleClean");
|
||||||
|
localStorage.removeItem("styleGloom");
|
||||||
|
localStorage.removeItem("styleAncient");
|
||||||
|
localStorage.removeItem("styleMonochrome");
|
||||||
}
|
}
|
||||||
|
|
||||||
}()
|
}()
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue