From 709f45e03e249acd2121e30ad2ba3fe380378032 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Tue, 1 Jun 2021 02:01:06 +0300 Subject: [PATCH] burgs overview - icon upload basic --- index.css | 7 +- index.html | 38 +++- modules/save-and-load.js | 3 + modules/ui/emblems-editor.js | 378 ++++++++++++++++++--------------- modules/ui/resources-editor.js | 107 +++++++++- 5 files changed, 337 insertions(+), 196 deletions(-) diff --git a/index.css b/index.css index 86cbfaca..8429bba3 100644 --- a/index.css +++ b/index.css @@ -1457,13 +1457,13 @@ div.states > .coaIcon > use { pointer-events: none; } -div.states > .icon { +div.states > .resourceIcon { margin: 0; cursor: pointer; vertical-align: middle; } -div.states > .icon > * { +div.states > .resourceIcon > * { pointer-events: none; } @@ -1548,7 +1548,8 @@ div.states > div.resourceBonus > span.icon-male { #stateNameEditor div.label, #provinceNameEditor div.label, -#regimentBody div.label { +#regimentBody div.label, +#resourceIconEditor div.label { display: inline-block; width: 5.5em; } diff --git a/index.html b/index.html index 402baaec..dd50311e 100644 --- a/index.html +++ b/index.html @@ -208,6 +208,7 @@ + @@ -3031,6 +3032,26 @@ + +