summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
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 16bf3dd..cec0dc6 100644
--- a/play.js
+++ b/play.js
@@ -300,6 +300,7 @@ function get_layout_radius(s) {
}
function init_ui() {
+ register_action(ui.tokens.aid, "aid", undefined)
register_action(ui.resources[GOVT], "resources", GOVT)
register_action(ui.resources[FARC], "resources", FARC)
register_action(ui.resources[AUC], "resources", AUC)
@@ -743,6 +744,7 @@ function on_update() {
ui.header.classList.toggle("cartels", view.current === CARTELS)
ui.header.classList.toggle("farc", view.current === FARC)
+ ui.tokens.aid.classList.toggle("action", is_action("aid"))
ui.resources[GOVT].classList.toggle("action", is_action("resources", GOVT))
ui.resources[FARC].classList.toggle("action", is_action("resources", FARC))
ui.resources[AUC].classList.toggle("action", is_action("resources", AUC))