From c8f758ab3c6579f8ac099dce19dde0fa438ffbb2 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Fri, 27 Mar 2020 17:52:23 +0300 Subject: [PATCH] v1.3.03a --- .vscode/launch.json | 11 +++ index.css | 10 +- index.html | 29 +++++- main.js | 40 ++++---- modules/burgs-and-states.js | 58 ++++++++--- modules/military-generator.js | 1 + modules/names-generator.js | 10 +- modules/routes-generator.js | 71 +++++++------- modules/ui/diplomacy-editor.js | 29 ++---- modules/ui/heightmap-editor.js | 2 +- modules/ui/layers.js | 4 +- modules/ui/military-overview.js | 75 ++++++++++----- modules/ui/options.js | 4 +- modules/ui/regiments-overview.js | 160 +++++++++++++++++++++++++++++++ modules/ui/states-editor.js | 28 ++---- 15 files changed, 397 insertions(+), 135 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 modules/ui/regiments-overview.js diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..6afdcc7d --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,11 @@ +{ + "version": "0.1.0", + "configurations": [ + { + "name": "Debug", + "type": "chrome", + "request": "launch", + "file": "${workspaceFolder}/index.html" + } + ] +} \ No newline at end of file diff --git a/index.css b/index.css index 7e4ba024..ba0f6bf1 100644 --- a/index.css +++ b/index.css @@ -1189,7 +1189,8 @@ div.states:hover { } div.states > *, -div.states sup { +div.states sup, +div.totalLine > div { display: inline-block; } @@ -1415,6 +1416,7 @@ div.states.Self { border-color: #858b8e; background-image: linear-gradient(to right, #f2f2f2 0%, #b0c6d9 100%); font-style: italic; + font-weight: bold; margin-bottom: .2em; cursor: default !important; } @@ -1437,7 +1439,8 @@ rect.fillRect { stroke-width: 2; } -#militaryHeader > div { +#militaryHeader > div, +#regimentsHeader > div { width: 5.2em; } @@ -1446,7 +1449,8 @@ rect.fillRect { } #militaryBody div.states > input, -#militaryBody div.states > div { +#militaryBody div.states > div, +#regimentsBody div.states > div { width: 5em; } diff --git a/index.html b/index.html index c9676d1d..3b5fb392 100644 --- a/index.html +++ b/index.html @@ -1960,7 +1960,7 @@
-
+
+
Ally
Friendly
@@ -2844,8 +2846,6 @@
Suzerain
-
-
@@ -3280,19 +3280,39 @@
States: 0
+
Total forces: 0
Average forces: 0
Average rate: 0%
Average alert: 0
- + +
+ +