Click on state name to see relations. Click on relations name to change it
+
diff --git a/modules/ui/diplomacy-editor.js b/modules/ui/diplomacy-editor.js
index eee4bb80..9418f176 100644
--- a/modules/ui/diplomacy-editor.js
+++ b/modules/ui/diplomacy-editor.js
@@ -14,11 +14,7 @@ function editDiplomacy() {
if (layerIsOn("toggleReligions")) toggleReligions();
const relations = {
- Ally: {
- inText: "is an ally of",
- color: "#00b300",
- tip: "Ally means states formed a defensive pact and will protect each other in case of third party aggression"
- },
+ Ally: {inText: "is an ally of", color: "#00b300", tip: "Allies formed a defensive pact and protect each other in case of third party aggression"},
Friendly: {inText: "is friendly to", color: "#d4f8aa", tip: "State is friendly to anouther state when they share some common interests"},
Neutral: {inText: "is neutral to", color: "#edeee8", tip: "Neutral means states relations are neither positive nor negative"},
Suspicion: {inText: "is suspicious of", color: "#eeafaa", tip: "Suspicion means state has a cautious distrust of another state"},
@@ -30,8 +26,6 @@ function editDiplomacy() {
};
refreshDiplomacyEditor();
-
- tip("Click on a state to see its diplomatic relations", false, "warning");
viewbox.style("cursor", "crosshair").on("click", selectStateOnMapClick);
if (modules.editDiplomacy) return;
@@ -83,11 +77,11 @@ function editDiplomacy() {
const states = pack.states;
const selectedLine = body.querySelector("div.Self");
const selectedId = selectedLine ? +selectedLine.dataset.id : states.find(s => s.i && !s.removed).i;
- const selectedName = states[selectedId].fullName;
+ const selectedName = states[selectedId].name;
COArenderer.trigger("stateCOA" + selectedId, states[selectedId].coa);
let lines = `
-
${selectedName}
+
${states[selectedId].fullName}
`;
@@ -96,18 +90,20 @@ function editDiplomacy() {
const relation = state.diplomacy[selectedId];
const {color, inText} = relations[relation];
- const tip = `${state.fullName} ${inText} ${selectedName}`;
+ const tip = `${state.name} ${inText} ${selectedName}`;
const tipSelect = `${tip}. Click to see relations to ${state.name}`;
- const tipChange = `${tip}. Click to change relations to ${selectedName}`;
+ const tipChange = `Click to change relations. ${tip}`;
COArenderer.trigger("stateCOA" + state.i, state.coa);
lines += `
-
${state.fullName}
-
- ${relation}
+
${state.fullName}
+
+
+ ${relation}
+
`;
}
body.innerHTML = lines;
@@ -291,7 +287,7 @@ function editDiplomacy() {
});
message += ``;
});
- alertMessage.innerHTML = message + `Type to edit. Press Enter to add a new line, empty the element to remove it`;
+ alertMessage.innerHTML = message + `
Type to edit. Press Enter to add a new line, empty the element to remove it