summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-10-30 12:50:42 +0100
committerTor Andersson <tor@ccxvii.net>2023-10-30 12:52:47 +0100
commite2f4af7e507a37593c6227ee2129df4682806e74 (patch)
treec4ae6951af78294207cf08368c7a6d9925554e45 /play.js
parent14bc6cde4ee2c95c3df9695b1ee379c5fd939d84 (diff)
downloadalgeria-e2f4af7e507a37593c6227ee2129df4682806e74.tar.gz
always show available/eliminated force panels
avoids funky animations when they are toggled on and off.
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/play.js b/play.js
index 992e216..2432a84 100644
--- a/play.js
+++ b/play.js
@@ -641,9 +641,11 @@ function update_map() {
}
// Hide supply panels when empty
+ /*
ui.fln_supply_panel.classList.toggle("hide", !(ui.fln_supply.childNodes.length - 1))
ui.gov_supply_panel.classList.toggle("hide", !(ui.gov_supply.childNodes.length - 1))
ui.eliminated_panel.classList.toggle("hide", !(ui.eliminated.childNodes.length - 1))
+ */
for (let i = 0; i < ui.areas.length; ++i) {
let e = ui.areas[i]