mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
v1.0.31
This commit is contained in:
parent
5722540076
commit
1ad74e6e3d
5 changed files with 8 additions and 6 deletions
|
|
@ -2756,7 +2756,7 @@
|
||||||
<textarea id="notesText" cols="70" rows="7" data-tip="Type object description" placeholder="Type object description"></textarea>
|
<textarea id="notesText" cols="70" rows="7" data-tip="Type object description" placeholder="Type object description"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<button id="notesFocus" data-tip="Focus map on selected object" class="icon-target"></button>
|
<button id="notesFocus" data-tip="Focus on selected object" class="icon-target"></button>
|
||||||
<button id="notesDownload" data-tip="Download notes to PC" class="icon-download"></button>
|
<button id="notesDownload" data-tip="Download notes to PC" class="icon-download"></button>
|
||||||
<button id="notesUpload" data-tip="Upload notes from PC" class="icon-upload"></button>
|
<button id="notesUpload" data-tip="Upload notes from PC" class="icon-upload"></button>
|
||||||
<button id="notesRemove" data-tip="Remove this note" class="icon-trash"></button>
|
<button id="notesRemove" data-tip="Remove this note" class="icon-trash"></button>
|
||||||
|
|
|
||||||
|
|
@ -302,6 +302,7 @@ function editCultures() {
|
||||||
debug.select("#cultureCenters").style("display", "none");
|
debug.select("#cultureCenters").style("display", "none");
|
||||||
|
|
||||||
culturesEditor.querySelectorAll(".hide").forEach(el => el.classList.add("hidden"));
|
culturesEditor.querySelectorAll(".hide").forEach(el => el.classList.add("hidden"));
|
||||||
|
culturesHeader.querySelector("div[data-sortby='type']").style.left = "6.8em";
|
||||||
culturesFooter.style.display = "none";
|
culturesFooter.style.display = "none";
|
||||||
culturesHeader.querySelector("div[data-sortby='base']").style.marginLeft = "21px";
|
culturesHeader.querySelector("div[data-sortby='base']").style.marginLeft = "21px";
|
||||||
body.querySelectorAll("div > input, select, span, svg").forEach(e => e.style.pointerEvents = "none");
|
body.querySelectorAll("div > input, select, span, svg").forEach(e => e.style.pointerEvents = "none");
|
||||||
|
|
@ -398,6 +399,7 @@ function editCultures() {
|
||||||
document.getElementById("culturesManuallyButtons").style.display = "none";
|
document.getElementById("culturesManuallyButtons").style.display = "none";
|
||||||
|
|
||||||
culturesEditor.querySelectorAll(".hide").forEach(el => el.classList.remove("hidden"));
|
culturesEditor.querySelectorAll(".hide").forEach(el => el.classList.remove("hidden"));
|
||||||
|
culturesHeader.querySelector("div[data-sortby='type']").style.left = "15.8em";
|
||||||
culturesFooter.style.display = "block";
|
culturesFooter.style.display = "block";
|
||||||
culturesHeader.querySelector("div[data-sortby='base']").style.marginLeft = "2px";
|
culturesHeader.querySelector("div[data-sortby='base']").style.marginLeft = "2px";
|
||||||
body.querySelectorAll("div > input, select, span, svg").forEach(e => e.style.pointerEvents = "all");
|
body.querySelectorAll("div > input, select, span, svg").forEach(e => e.style.pointerEvents = "all");
|
||||||
|
|
|
||||||
|
|
@ -1114,7 +1114,7 @@ function getHeight(h) {
|
||||||
preview.width = grid.cellsX;
|
preview.width = grid.cellsX;
|
||||||
preview.height = grid.cellsY;
|
preview.height = grid.cellsY;
|
||||||
document.body.insertBefore(preview, optionsContainer);
|
document.body.insertBefore(preview, optionsContainer);
|
||||||
preview.addEventListener("mouseover", () => tip("Heightmap preview. Click to download the image"));
|
preview.addEventListener("mouseover", () => tip("Heightmap preview. Click to download a screen-sized image"));
|
||||||
preview.addEventListener("click", downloadPreview);
|
preview.addEventListener("click", downloadPreview);
|
||||||
drawHeightmapPreview();
|
drawHeightmapPreview();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -110,11 +110,11 @@ function editProvinces() {
|
||||||
<input data-tip="Province name. Click and type to change" class="stateName" value="${p.name}" autocorrect="off" spellcheck="false">
|
<input data-tip="Province name. Click and type to change" class="stateName" value="${p.name}" autocorrect="off" spellcheck="false">
|
||||||
<span data-tip="Click to re-generate province name" class="icon-arrows-cw stateName hoverButton placeholder"></span>
|
<span data-tip="Click to re-generate province name" class="icon-arrows-cw stateName hoverButton placeholder"></span>
|
||||||
<span data-tip="Click to open province COA in the Iron Arachne Heraldry Generator" class="icon-fleur pointer hide"></span>
|
<span data-tip="Click to open province COA in the Iron Arachne Heraldry Generator" class="icon-fleur pointer hide"></span>
|
||||||
<input data-tip="Province form name. Click and type to change" class="stateForm" value="${p.formName}" autocorrect="off" spellcheck="false">
|
<input data-tip="Province form name. Click and type to change" class="stateForm hide" value="${p.formName}" autocorrect="off" spellcheck="false">
|
||||||
<span data-tip="Click to re-generate form name" class="icon-arrows-cw stateForm hoverButton placeholder"></span>
|
<span data-tip="Click to re-generate form name" class="icon-arrows-cw stateForm hoverButton placeholder"></span>
|
||||||
<span data-tip="Province capital. Click to zoom into view" class="icon-star-empty pointer hide ${p.burg?'':'placeholder'}"></span>
|
<span data-tip="Province capital. Click to zoom into view" class="icon-star-empty pointer hide ${p.burg?'':'placeholder'}"></span>
|
||||||
<select data-tip="Province capital. Click to select from burgs within the state. No capital means the province is governed from the state capital" class="cultureBase hide ${p.burgs.length?'':'placeholder'}">${p.burgs.length ? getCapitalOptions(p.burgs, p.burg) : ''}</select>
|
<select data-tip="Province capital. Click to select from burgs within the state. No capital means the province is governed from the state capital" class="cultureBase hide ${p.burgs.length?'':'placeholder'}">${p.burgs.length ? getCapitalOptions(p.burgs, p.burg) : ''}</select>
|
||||||
<input data-tip="Province owner" class="provinceOwner" value="${stateName}" disabled hide">
|
<input data-tip="Province owner" class="provinceOwner" value="${stateName}" disabled">
|
||||||
<span data-tip="Province area" style="padding-right: 4px" class="icon-map-o hide"></span>
|
<span data-tip="Province area" style="padding-right: 4px" class="icon-map-o hide"></span>
|
||||||
<div data-tip="Province area" class="biomeArea hide">${si(area) + unit}</div>
|
<div data-tip="Province area" class="biomeArea hide">${si(area) + unit}</div>
|
||||||
<span data-tip="${populationTip}" class="icon-male hide"></span>
|
<span data-tip="${populationTip}" class="icon-male hide"></span>
|
||||||
|
|
@ -291,6 +291,7 @@ function editProvinces() {
|
||||||
document.getElementById("provincesManuallyButtons").style.display = "inline-block";
|
document.getElementById("provincesManuallyButtons").style.display = "inline-block";
|
||||||
|
|
||||||
provincesEditor.querySelectorAll(".hide").forEach(el => el.classList.add("hidden"));
|
provincesEditor.querySelectorAll(".hide").forEach(el => el.classList.add("hidden"));
|
||||||
|
provincesHeader.querySelector("div[data-sortby='state']").style.left = "7.7em";
|
||||||
provincesFooter.style.display = "none";
|
provincesFooter.style.display = "none";
|
||||||
body.querySelectorAll("div > input, select, span, svg").forEach(e => e.style.pointerEvents = "none");
|
body.querySelectorAll("div > input, select, span, svg").forEach(e => e.style.pointerEvents = "none");
|
||||||
$("#provincesEditor").dialog({position: {my: "right top", at: "right-10 top+10", of: "svg", collision: "fit"}});
|
$("#provincesEditor").dialog({position: {my: "right top", at: "right-10 top+10", of: "svg", collision: "fit"}});
|
||||||
|
|
@ -399,6 +400,7 @@ function editProvinces() {
|
||||||
document.getElementById("provincesManuallyButtons").style.display = "none";
|
document.getElementById("provincesManuallyButtons").style.display = "none";
|
||||||
|
|
||||||
provincesEditor.querySelectorAll(".hide:not(.show)").forEach(el => el.classList.remove("hidden"));
|
provincesEditor.querySelectorAll(".hide:not(.show)").forEach(el => el.classList.remove("hidden"));
|
||||||
|
provincesHeader.querySelector("div[data-sortby='state']").style.left = "22em";
|
||||||
provincesFooter.style.display = "block";
|
provincesFooter.style.display = "block";
|
||||||
body.querySelectorAll("div > input, select, span, svg").forEach(e => e.style.pointerEvents = "all");
|
body.querySelectorAll("div > input, select, span, svg").forEach(e => e.style.pointerEvents = "all");
|
||||||
if(!close) $("#provincesEditor").dialog({position: {my: "right top", at: "right-10 top+10", of: "svg", collision: "fit"}});
|
if(!close) $("#provincesEditor").dialog({position: {my: "right top", at: "right-10 top+10", of: "svg", collision: "fit"}});
|
||||||
|
|
|
||||||
|
|
@ -433,7 +433,6 @@ function editStates() {
|
||||||
document.getElementById("statesHalo").style.display = "none";
|
document.getElementById("statesHalo").style.display = "none";
|
||||||
|
|
||||||
statesEditor.querySelectorAll(".hide").forEach(el => el.classList.add("hidden"));
|
statesEditor.querySelectorAll(".hide").forEach(el => el.classList.add("hidden"));
|
||||||
statesBodySection.querySelectorAll("input.stateName").forEach(el => el.style.width = "7em");
|
|
||||||
statesFooter.style.display = "none";
|
statesFooter.style.display = "none";
|
||||||
body.querySelectorAll("div > input, select, span, svg").forEach(e => e.style.pointerEvents = "none");
|
body.querySelectorAll("div > input, select, span, svg").forEach(e => e.style.pointerEvents = "none");
|
||||||
$("#statesEditor").dialog({position: {my: "right top", at: "right-10 top+10", of: "svg", collision: "fit"}});
|
$("#statesEditor").dialog({position: {my: "right top", at: "right-10 top+10", of: "svg", collision: "fit"}});
|
||||||
|
|
@ -598,7 +597,6 @@ function editStates() {
|
||||||
document.getElementById("statesHalo").style.display = "block";
|
document.getElementById("statesHalo").style.display = "block";
|
||||||
|
|
||||||
statesEditor.querySelectorAll(".hide:not(.show)").forEach(el => el.classList.remove("hidden"));
|
statesEditor.querySelectorAll(".hide:not(.show)").forEach(el => el.classList.remove("hidden"));
|
||||||
statesBodySection.querySelectorAll("input.stateName").forEach(el => el.style.width = "");
|
|
||||||
statesFooter.style.display = "block";
|
statesFooter.style.display = "block";
|
||||||
body.querySelectorAll("div > input, select, span, svg").forEach(e => e.style.pointerEvents = "all");
|
body.querySelectorAll("div > input, select, span, svg").forEach(e => e.style.pointerEvents = "all");
|
||||||
if(!close) $("#statesEditor").dialog({position: {my: "right top", at: "right-10 top+10", of: "svg", collision: "fit"}});
|
if(!close) $("#statesEditor").dialog({position: {my: "right top", at: "right-10 top+10", of: "svg", collision: "fit"}});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue