mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.22.21
This commit is contained in:
parent
2f43694ecb
commit
f521a11bd5
3 changed files with 8 additions and 7 deletions
|
|
@ -1942,8 +1942,8 @@
|
||||||
<i data-locked=0 id="lock_mapSize" class="icon-lock-open"></i>
|
<i data-locked=0 id="lock_mapSize" class="icon-lock-open"></i>
|
||||||
<label data-tip="Set map size relative to the world size">
|
<label data-tip="Set map size relative to the world size">
|
||||||
<i>Map size:</i>
|
<i>Map size:</i>
|
||||||
<input id="mapSizeInput" data-stored="mapSize" type="number" min="1" max="100" step=1>%
|
<input id="mapSizeInput" data-stored="mapSize" type="number" min="1" max="100">%
|
||||||
<input id="mapSizeOutput" data-stored="mapSize" type="range" min="1" max="100" step=1>
|
<input id="mapSizeOutput" data-stored="mapSize" type="range" min="1" max="100">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|
|
||||||
4
main.js
4
main.js
|
|
@ -327,11 +327,9 @@ function showWelcomeMessage() {
|
||||||
<li>3d scene and Globe view</li>
|
<li>3d scene and Globe view</li>
|
||||||
<li>Ability to save map as JPEG image</li>
|
<li>Ability to save map as JPEG image</li>
|
||||||
<li>Diplomacy Editor enhancements</li>
|
<li>Diplomacy Editor enhancements</li>
|
||||||
<li>Rivers Overview screen [v 1.21] <b>*</b></li>
|
<li>Rivers Overview screen</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<p style="color:#990000; font-style: italic"><b>*</b> It's recommended to regenerate rivers to get clean data for Rivers Overview.<p>
|
|
||||||
|
|
||||||
<p>Thanks for all supporters on ${patreon}!</i></p>`;
|
<p>Thanks for all supporters on ${patreon}!</i></p>`;
|
||||||
|
|
||||||
$("#alert").dialog(
|
$("#alert").dialog(
|
||||||
|
|
|
||||||
|
|
@ -85,8 +85,11 @@ async function getMapURL(type, subtype) {
|
||||||
if (isFirefox && type === "mesh") clone.select("#oceanPattern").remove();
|
if (isFirefox && type === "mesh") clone.select("#oceanPattern").remove();
|
||||||
if (subtype === "globe") clone.select("#scaleBar").remove();
|
if (subtype === "globe") clone.select("#scaleBar").remove();
|
||||||
if (subtype === "noWater") {clone.select("#oceanBase").attr("opacity", 0); clone.select("#oceanPattern").attr("opacity", 0);}
|
if (subtype === "noWater") {clone.select("#oceanBase").attr("opacity", 0); clone.select("#oceanPattern").attr("opacity", 0);}
|
||||||
if (type === "mesh") clone.attr("width", graphWidth).attr("height", graphHeight);
|
if (type !== "png") {
|
||||||
if (type !== "png") clone.select("#viewbox").attr("transform", null); // reset transform to show whole map
|
// reset transform to show the whole map
|
||||||
|
clone.attr("width", graphWidth).attr("height", graphHeight);
|
||||||
|
clone.select("#viewbox").attr("transform", null);
|
||||||
|
}
|
||||||
if (type === "svg") removeUnusedElements(clone);
|
if (type === "svg") removeUnusedElements(clone);
|
||||||
if (customization && type === "mesh") updateMeshCells(clone);
|
if (customization && type === "mesh") updateMeshCells(clone);
|
||||||
inlineStyle(clone);
|
inlineStyle(clone);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue