summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-04-02 22:54:40 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-03 18:48:16 +0200
commita779b22ba565b782b87c8ce52552192872e5ee68 (patch)
tree63448b9110ee52d09febd5a4271078890a8a91b4 /play.js
parentaddfb03d06301ae00211404c7a65f43427c60c9c (diff)
downloadandean-abyss-a779b22ba565b782b87c8ce52552192872e5ee68.tar.gz
separate boxes
Diffstat (limited to 'play.js')
-rw-r--r--play.js18
1 files changed, 11 insertions, 7 deletions
diff --git a/play.js b/play.js
index 3a81923..57632e0 100644
--- a/play.js
+++ b/play.js
@@ -296,7 +296,13 @@ function on_focus_next_event() {
ui.status.textContent = data.card_title[c]
}
-function on_focus_event() {
+function on_focus_this_event() {
+ let c = view.deck[0]
+ if (c > 0)
+ ui.status.textContent = data.card_title[c]
+}
+
+function on_focus_unshaded_event() {
let c = view.deck[0]
if (c > 0) {
let f = data.card_flavor[c]
@@ -328,10 +334,12 @@ function init_ui() {
register_action(ui.resources[AUC], "resources", AUC)
register_action(ui.resources[CARTELS], "resources", CARTELS)
- ui.this_card.onmouseenter = on_focus_event
+ ui.this_card.onmouseenter = on_focus_this_event
ui.this_card.onmouseleave = on_blur_event
ui.shaded_event.onmouseenter = on_focus_shaded_event
- ui.shaded_event.onmouseleave = on_focus_event
+ ui.shaded_event.onmouseleave = on_focus_this_event
+ ui.unshaded_event.onmouseenter = on_focus_unshaded_event
+ ui.unshaded_event.onmouseleave = on_focus_this_event
ui.next_card.onmouseenter = on_focus_next_event
ui.next_card.onmouseleave = on_blur_event
@@ -1064,10 +1072,6 @@ function on_update() {
action_button("support", "Support")
action_button("opposition", "Opposition")
- action_button("limop", "LimOp")
- // action_button("event", "Event")
- // action_button("shaded", "Shaded")
-
action_button("skip", "Skip")
action_button("next", "Next")
action_button("pass", "Pass")