summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-02 20:36:16 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-02 20:36:39 +0100
commit1d073110c0937e2a057efd0eeeef5223036c1187 (patch)
tree696edad37a9038ae2257cacbb42fe1c1b90c827d /play.js
parent1640855336f524cf44f61571b0bb25c10f70c34b (diff)
download1989-dawn-of-freedom-1d073110c0937e2a057efd0eeeef5223036c1187.tar.gz
Highlight selected space.
Diffstat (limited to 'play.js')
-rw-r--r--play.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/play.js b/play.js
index aa7a8b6..a201e8a 100644
--- a/play.js
+++ b/play.js
@@ -715,6 +715,9 @@ function on_update() {
for (let e of action_register)
e.classList.toggle("action", is_action(e.my_action, e.my_id))
+ for (let s = 0; s <= last_space; ++s)
+ ui.spaces[s].classList.toggle("selected", view.selected_space === s)
+
action_button("yes", "Yes")
action_button("no", "No")
action_button("start", "Start")