mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-03-22 15:17:23 +01:00
Address review feedback: remove duplicate header, set width 600px, add reverse map-hover highlight
Co-authored-by: Azgaar <26469650+Azgaar@users.noreply.github.com>
This commit is contained in:
parent
59fe113ba3
commit
914c3a62bb
3 changed files with 6 additions and 2 deletions
|
|
@ -1437,6 +1437,10 @@ div.states.hovered {
|
|||
background-image: linear-gradient(to right, #dedede 100%, #f2f2f2 50%, #fcfcfc 0%);
|
||||
}
|
||||
|
||||
#mergeStatesForm div[data-id].hovered {
|
||||
background-image: linear-gradient(to right, #dedede 100%, #f2f2f2 50%, #fcfcfc 0%);
|
||||
}
|
||||
|
||||
div.states > *,
|
||||
div.states sup,
|
||||
div.totalLine > div {
|
||||
|
|
|
|||
|
|
@ -1301,7 +1301,6 @@ function openStateMergeDialog() {
|
|||
|
||||
alertMessage.innerHTML = /* html */ `
|
||||
<form id='mergeStatesForm' style="overflow: hidden; display: flex; flex-direction: column; gap: 1em;">
|
||||
<header style='font-weight:bold;'>Merge states</header>
|
||||
<p style="margin:0">
|
||||
Check the <b>checkbox</b> next to each state you want to merge.
|
||||
Use the <b>radio button</b> to pick the <em>ruling state</em> that will absorb all others (its name, color, and capital will be kept).
|
||||
|
|
@ -1349,7 +1348,7 @@ function openStateMergeDialog() {
|
|||
}
|
||||
|
||||
$("#alert").dialog({
|
||||
width: fitContent(),
|
||||
width: 600,
|
||||
title: `Merge states`,
|
||||
close: stateHighlightOff,
|
||||
buttons: {
|
||||
|
|
|
|||
|
|
@ -238,6 +238,7 @@ function showMapTooltip(point, e, i, g) {
|
|||
if (document.getElementById("diplomacyEditor")?.offsetParent) highlightEditorLine(diplomacyEditor, state);
|
||||
if (document.getElementById("militaryOverview")?.offsetParent) highlightEditorLine(militaryOverview, state);
|
||||
if (document.getElementById("provincesEditor")?.offsetParent) highlightEditorLine(provincesEditor, province);
|
||||
if (document.getElementById("mergeStatesForm")?.offsetParent) highlightEditorLine(byId("mergeStatesForm"), state);
|
||||
} else if (layerIsOn("toggleCultures") && pack.cells.culture[i]) {
|
||||
const culture = pack.cells.culture[i];
|
||||
tip("Culture: " + pack.cultures[culture].name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue