From 1ad74e6e3d220fd896aca7c70ed8229ae63eac89 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Fri, 13 Sep 2019 15:25:19 +0300 Subject: [PATCH] v1.0.31 --- index.html | 2 +- modules/ui/cultures-editor.js | 2 ++ modules/ui/heightmap-editor.js | 2 +- modules/ui/provinces-editor.js | 6 ++++-- modules/ui/states-editor.js | 2 -- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 685e0ee3..85ac40e8 100644 --- a/index.html +++ b/index.html @@ -2756,7 +2756,7 @@
- + diff --git a/modules/ui/cultures-editor.js b/modules/ui/cultures-editor.js index 46d9c1d3..9ad8bbcc 100644 --- a/modules/ui/cultures-editor.js +++ b/modules/ui/cultures-editor.js @@ -302,6 +302,7 @@ function editCultures() { debug.select("#cultureCenters").style("display", "none"); culturesEditor.querySelectorAll(".hide").forEach(el => el.classList.add("hidden")); + culturesHeader.querySelector("div[data-sortby='type']").style.left = "6.8em"; culturesFooter.style.display = "none"; culturesHeader.querySelector("div[data-sortby='base']").style.marginLeft = "21px"; 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"; culturesEditor.querySelectorAll(".hide").forEach(el => el.classList.remove("hidden")); + culturesHeader.querySelector("div[data-sortby='type']").style.left = "15.8em"; culturesFooter.style.display = "block"; culturesHeader.querySelector("div[data-sortby='base']").style.marginLeft = "2px"; body.querySelectorAll("div > input, select, span, svg").forEach(e => e.style.pointerEvents = "all"); diff --git a/modules/ui/heightmap-editor.js b/modules/ui/heightmap-editor.js index 510fe449..12783cd1 100644 --- a/modules/ui/heightmap-editor.js +++ b/modules/ui/heightmap-editor.js @@ -1114,7 +1114,7 @@ function getHeight(h) { preview.width = grid.cellsX; preview.height = grid.cellsY; 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); drawHeightmapPreview(); } diff --git a/modules/ui/provinces-editor.js b/modules/ui/provinces-editor.js index 7e9fe1a1..61b1fc0f 100644 --- a/modules/ui/provinces-editor.js +++ b/modules/ui/provinces-editor.js @@ -110,11 +110,11 @@ function editProvinces() { - + - +
${si(area) + unit}
@@ -291,6 +291,7 @@ function editProvinces() { document.getElementById("provincesManuallyButtons").style.display = "inline-block"; provincesEditor.querySelectorAll(".hide").forEach(el => el.classList.add("hidden")); + provincesHeader.querySelector("div[data-sortby='state']").style.left = "7.7em"; provincesFooter.style.display = "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"}}); @@ -399,6 +400,7 @@ function editProvinces() { document.getElementById("provincesManuallyButtons").style.display = "none"; provincesEditor.querySelectorAll(".hide:not(.show)").forEach(el => el.classList.remove("hidden")); + provincesHeader.querySelector("div[data-sortby='state']").style.left = "22em"; provincesFooter.style.display = "block"; 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"}}); diff --git a/modules/ui/states-editor.js b/modules/ui/states-editor.js index c2a7d60c..c041e18f 100644 --- a/modules/ui/states-editor.js +++ b/modules/ui/states-editor.js @@ -433,7 +433,6 @@ function editStates() { document.getElementById("statesHalo").style.display = "none"; statesEditor.querySelectorAll(".hide").forEach(el => el.classList.add("hidden")); - statesBodySection.querySelectorAll("input.stateName").forEach(el => el.style.width = "7em"); statesFooter.style.display = "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"}}); @@ -598,7 +597,6 @@ function editStates() { document.getElementById("statesHalo").style.display = "block"; statesEditor.querySelectorAll(".hide:not(.show)").forEach(el => el.classList.remove("hidden")); - statesBodySection.querySelectorAll("input.stateName").forEach(el => el.style.width = ""); statesFooter.style.display = "block"; 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"}});