From d7d79ad7407c4198dd48a01b123fb38b5c822321 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sun, 29 Sep 2024 14:24:44 +0200 Subject: [PATCH] refactor: split states and burgs generators --- index.css | 2 +- index.html | 30 +- main.js | 12 +- modules/burgs-generator.js | 279 ++++++++++++++++ modules/dynamic/auto-update.js | 20 +- modules/dynamic/editors/states-editor.js | 16 +- modules/markers-generator.js | 2 +- modules/provinces-generator.js | 4 +- modules/religions-generator.js | 9 +- ...urgs-and-states.js => states-generator.js} | 304 ++---------------- modules/submap.js | 2 +- modules/ui/burgs-overview.js | 25 ++ modules/ui/diplomacy-editor.js | 2 +- modules/ui/editors.js | 4 +- modules/ui/heightmap-editor.js | 7 +- modules/ui/provinces-editor.js | 6 +- modules/ui/style-presets.js | 34 +- modules/ui/tools.js | 45 ++- 18 files changed, 445 insertions(+), 358 deletions(-) create mode 100644 modules/burgs-generator.js rename modules/{burgs-and-states.js => states-generator.js} (68%) diff --git a/index.css b/index.css index 0244eb23..b30130f8 100644 --- a/index.css +++ b/index.css @@ -1892,7 +1892,7 @@ div.editorLine { } #militaryOptionsTable input[type="number"] { - width: 4em; + width: 5em; } #militaryOptionsTable button { diff --git a/index.html b/index.html index c21af9bb..8e958451 100644 --- a/index.html +++ b/index.html @@ -5321,6 +5321,7 @@
+
+ +