mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
style(cultures editor): move regenerate burg names button closer to namesbase
This commit is contained in:
parent
f018256f7a
commit
e0ea578032
4 changed files with 8 additions and 8 deletions
|
|
@ -7886,7 +7886,7 @@
|
||||||
|
|
||||||
<script defer src="modules/relief-icons.js"></script>
|
<script defer src="modules/relief-icons.js"></script>
|
||||||
<script defer src="modules/ui/style.js"></script>
|
<script defer src="modules/ui/style.js"></script>
|
||||||
<script defer src="modules/ui/editors.js?v=1.89.07"></script>
|
<script defer src="modules/ui/editors.js?v=1.89.09"></script>
|
||||||
<script defer src="modules/ui/tools.js?v=1.89.00"></script>
|
<script defer src="modules/ui/tools.js?v=1.89.00"></script>
|
||||||
<script defer src="modules/ui/world-configurator.js"></script>
|
<script defer src="modules/ui/world-configurator.js"></script>
|
||||||
<script defer src="modules/ui/heightmap-editor.js?v=1.89.06"></script>
|
<script defer src="modules/ui/heightmap-editor.js?v=1.89.06"></script>
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ export function open() {
|
||||||
|
|
||||||
function insertEditorHtml() {
|
function insertEditorHtml() {
|
||||||
const editorHtml = /* html */ `<div id="culturesEditor" class="dialog stable">
|
const editorHtml = /* html */ `<div id="culturesEditor" class="dialog stable">
|
||||||
<div id="culturesHeader" class="header" style="grid-template-columns: 10em 7em 8em 4em 8em 5em 8em 8em">
|
<div id="culturesHeader" class="header" style="grid-template-columns: 10em 7em 9em 4em 8em 5em 7em 8em">
|
||||||
<div data-tip="Click to sort by culture name" class="sortable alphabetically" data-sortby="name">Culture </div>
|
<div data-tip="Click to sort by culture name" class="sortable alphabetically" data-sortby="name">Culture </div>
|
||||||
<div data-tip="Click to sort by type" class="sortable alphabetically" data-sortby="type">Type </div>
|
<div data-tip="Click to sort by type" class="sortable alphabetically" data-sortby="type">Type </div>
|
||||||
<div data-tip="Click to sort by culture namesbase" class="sortable" data-sortby="base">Namesbase </div>
|
<div data-tip="Click to sort by culture namesbase" class="sortable" data-sortby="base">Namesbase </div>
|
||||||
|
|
@ -171,6 +171,7 @@ function culturesEditorAddLines() {
|
||||||
value="${c.name}" autocorrect="off" spellcheck="false" />
|
value="${c.name}" autocorrect="off" spellcheck="false" />
|
||||||
<span class="icon-cw placeholder"></span>
|
<span class="icon-cw placeholder"></span>
|
||||||
<select class="cultureType placeholder">${getTypeOptions(c.type)}</select>
|
<select class="cultureType placeholder">${getTypeOptions(c.type)}</select>
|
||||||
|
<span data-tip="Click to re-generate names for burgs with this culture assigned" class="icon-arrows-cw hide"></span>
|
||||||
<select data-tip="Culture namesbase. Click to change. Click on arrows to re-generate names"
|
<select data-tip="Culture namesbase. Click to change. Click on arrows to re-generate names"
|
||||||
class="cultureBase">${getBaseOptions(c.base)}</select>
|
class="cultureBase">${getBaseOptions(c.base)}</select>
|
||||||
<span data-tip="Cells count" class="icon-check-empty hide"></span>
|
<span data-tip="Cells count" class="icon-check-empty hide"></span>
|
||||||
|
|
@ -181,8 +182,7 @@ function culturesEditorAddLines() {
|
||||||
<div data-tip="Culture area" class="cultureArea hide" style="width: 6em">${si(area)} ${unit}</div>
|
<div data-tip="Culture area" class="cultureArea hide" style="width: 6em">${si(area)} ${unit}</div>
|
||||||
<span data-tip="${populationTip}" class="icon-male hide"></span>
|
<span data-tip="${populationTip}" class="icon-male hide"></span>
|
||||||
<div data-tip="${populationTip}" class="culturePopulation hide pointer"
|
<div data-tip="${populationTip}" class="culturePopulation hide pointer"
|
||||||
style="width: 5em">${si(population)}</div>
|
style="width: 4em">${si(population)}</div>
|
||||||
<span data-tip="Click to re-generate names for burgs with this culture assigned" class="icon-arrows-cw hide"></span>
|
|
||||||
${getShapeOptions(selectShape, c.shield)}
|
${getShapeOptions(selectShape, c.shield)}
|
||||||
</div>`;
|
</div>`;
|
||||||
continue;
|
continue;
|
||||||
|
|
@ -207,6 +207,7 @@ function culturesEditorAddLines() {
|
||||||
<span data-tip="Regenerate culture name" class="icon-cw hiddenIcon" style="visibility: hidden"></span>
|
<span data-tip="Regenerate culture name" class="icon-cw hiddenIcon" style="visibility: hidden"></span>
|
||||||
<select data-tip="Culture type. Defines growth model. Click to change"
|
<select data-tip="Culture type. Defines growth model. Click to change"
|
||||||
class="cultureType">${getTypeOptions(c.type)}</select>
|
class="cultureType">${getTypeOptions(c.type)}</select>
|
||||||
|
<span data-tip="Click to re-generate names for burgs with this culture assigned" class="icon-arrows-cw hide"></span>
|
||||||
<select data-tip="Culture namesbase. Click to change. Click on arrows to re-generate names"
|
<select data-tip="Culture namesbase. Click to change. Click on arrows to re-generate names"
|
||||||
class="cultureBase">${getBaseOptions(c.base)}</select>
|
class="cultureBase">${getBaseOptions(c.base)}</select>
|
||||||
<span data-tip="Cells count" class="icon-check-empty hide"></span>
|
<span data-tip="Cells count" class="icon-check-empty hide"></span>
|
||||||
|
|
@ -225,8 +226,7 @@ function culturesEditorAddLines() {
|
||||||
<div data-tip="Culture area" class="cultureArea hide" style="width: 6em">${si(area)} ${unit}</div>
|
<div data-tip="Culture area" class="cultureArea hide" style="width: 6em">${si(area)} ${unit}</div>
|
||||||
<span data-tip="${populationTip}" class="icon-male hide"></span>
|
<span data-tip="${populationTip}" class="icon-male hide"></span>
|
||||||
<div data-tip="${populationTip}" class="culturePopulation hide pointer"
|
<div data-tip="${populationTip}" class="culturePopulation hide pointer"
|
||||||
style="width: 5em">${si(population)}</div>
|
style="width: 4em">${si(population)}</div>
|
||||||
<span data-tip="Click to re-generate names for burgs with this culture assigned" class="icon-arrows-cw hide"></span>
|
|
||||||
${getShapeOptions(selectShape, c.shield)}
|
${getShapeOptions(selectShape, c.shield)}
|
||||||
<span data-tip="Lock culture" class="icon-lock${c.lock ? "" : "-open"} hide"></span>
|
<span data-tip="Lock culture" class="icon-lock${c.lock ? "" : "-open"} hide"></span>
|
||||||
<span data-tip="Remove culture" class="icon-trash-empty hide"></span>
|
<span data-tip="Remove culture" class="icon-trash-empty hide"></span>
|
||||||
|
|
|
||||||
|
|
@ -1182,7 +1182,7 @@ async function editStates() {
|
||||||
|
|
||||||
async function editCultures() {
|
async function editCultures() {
|
||||||
if (customization) return;
|
if (customization) return;
|
||||||
const Editor = await import("../dynamic/editors/cultures-editor.js?v=1.89.02");
|
const Editor = await import("../dynamic/editors/cultures-editor.js?v=1.89.09");
|
||||||
Editor.open();
|
Editor.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
// version and caching control
|
// version and caching control
|
||||||
const version = "1.89.08"; // generator version, update each time
|
const version = "1.89.09"; // generator version, update each time
|
||||||
|
|
||||||
{
|
{
|
||||||
document.title += " v" + version;
|
document.title += " v" + version;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue