mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 17:51:24 +01:00
v1.5.03 - Cultures small rework
This commit is contained in:
parent
9f1012603d
commit
968182512c
5 changed files with 148 additions and 165 deletions
|
|
@ -492,9 +492,9 @@ 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";
|
||||
culturesHeader.querySelector("div[data-sortby='type']").style.left = "8.8em";
|
||||
culturesFooter.style.display = "none";
|
||||
culturesHeader.querySelector("div[data-sortby='base']").style.marginLeft = "21px";
|
||||
culturesHeader.querySelector("div[data-sortby='base']").style.marginLeft = "20px";
|
||||
body.querySelectorAll("div > input, select, span, svg").forEach(e => e.style.pointerEvents = "none");
|
||||
$("#culturesEditor").dialog({position: {my: "right top", at: "right-10 top+10", of: "svg"}});
|
||||
|
||||
|
|
@ -588,7 +588,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";
|
||||
culturesHeader.querySelector("div[data-sortby='type']").style.left = "18.6em";
|
||||
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");
|
||||
|
|
|
|||
|
|
@ -403,14 +403,14 @@ function randomizeHeightmapTemplate() {
|
|||
// select culture set pseudo-randomly
|
||||
function randomizeCultureSet() {
|
||||
const sets = {
|
||||
"world": 25,
|
||||
"european": 20,
|
||||
"oriental": 10,
|
||||
"english": 10,
|
||||
"antique": 5,
|
||||
"highFantasy": 22,
|
||||
"darkFantasy": 6,
|
||||
"random": 2};
|
||||
"world": 10,
|
||||
"european": 10,
|
||||
"oriental": 2,
|
||||
"english": 5,
|
||||
"antique": 3,
|
||||
"highFantasy": 11,
|
||||
"darkFantasy": 3,
|
||||
"random": 1};
|
||||
culturesSet.value = rw(sets);
|
||||
changeCultureSet();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue