From 9f1012603d81e955dbaf80c7482294e9eb1a323c Mon Sep 17 00:00:00 2001 From: Azgaar Date: Thu, 28 Jan 2021 01:40:11 +0300 Subject: [PATCH] v1.5.02 - COA rendering + editor basic UI --- index.css | 38 +- index.html | 598 +++++++++++++++++++++++- modules/coa-generator.js | 50 +- modules/coa-renderer.js | 887 ++++++++++++++++++++++++++++++++++++ modules/save-and-load.js | 2 +- modules/ui/coa-editor.js | 108 +++++ modules/ui/general.js | 7 +- modules/ui/states-editor.js | 23 +- run_python_server.bat | 3 + 9 files changed, 1663 insertions(+), 53 deletions(-) create mode 100644 modules/coa-renderer.js create mode 100644 modules/ui/coa-editor.js create mode 100644 run_python_server.bat diff --git a/index.css b/index.css index 83b898de..2dbbcdae 100644 --- a/index.css +++ b/index.css @@ -1391,9 +1391,20 @@ div.states>input.riverType { width: 5em; } -div.states>embed.emblemIcon { - margin: -.4em 0; +div.states > .coaIcon { + width: 1.4em; + height: 1.4em; + margin: -.3em 0; cursor: pointer; + transition: all .4s ease-in-out; +} + +div.states > .coaIcon:hover { + transform: scale(8); +} + +div.states > .coaIcon > use { + pointer-events: none; } #diplomacyBodySection > div { @@ -1538,6 +1549,29 @@ rect.fillRect { width: 5em; } +#emblemBody > div { + padding: 1px 3px; + transition: all .3s ease-out; +} + +#emblemBody > div.active { + background-color: #54ca7728; +} + +#emblemArmiger { + text-align: center; + display: block; +} + +#emblemBody .label { + width: 5.5em; + display: inline-block; +} + +#emblemBody select { + width: 8em; +} + #picker text { cursor: default; } diff --git a/index.html b/index.html index c5d655a4..38c7e404 100644 --- a/index.html +++ b/index.html @@ -2821,7 +2821,7 @@ -