summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-01-01 01:37:05 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:19:39 +0100
commit5e7f5119713c6c770e082a455f0a84f36744d953 (patch)
tree2644fd4fb473288c8a65f0d64df07bad21bea870 /play.js
parentce2b49de2c55f491aead98285cca43d077ebb62d (diff)
downloadcrusader-rex-5e7f5119713c6c770e082a455f0a84f36744d953.tar.gz
Split into separate module.
Diffstat (limited to 'play.js')
-rw-r--r--play.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/play.js b/play.js
index 70a7f19..9de5a81 100644
--- a/play.js
+++ b/play.js
@@ -589,11 +589,11 @@ function update_map() {
function update_card_display(element, card, prior_card) {
if (!card && !prior_card) {
- element.className = "small_card card_back";
+ element.className = "show card card_back";
} else if (prior_card) {
- element.className = "small_card prior " + CARDS[prior_card].image;
+ element.className = "show card prior " + CARDS[prior_card].image;
} else {
- element.className = "small_card " + CARDS[card].image;
+ element.className = "show card " + CARDS[card].image;
}
}
@@ -759,17 +759,17 @@ function start_flash() {
}
function on_update() {
- action_button("eliminate_button", "Eliminate");
- action_button("winter_campaign_button", "Winter campaign");
- action_button("sea_move_button", "Sea move");
- action_button("end_sea_move_button", "End sea move");
- action_button("group_move_button", "Group move");
- action_button("end_group_move_button", "End group move");
- action_button("muster_button", "Muster");
- action_button("end_muster_button", "End muster");
- action_button("end_retreat_button", "End retreat");
- action_button("end_regroup_button", "End regroup");
- action_button("end_move_phase_button", "End move phase");
+ action_button("eliminate", "Eliminate");
+ action_button("winter_campaign", "Winter campaign");
+ action_button("sea_move", "Sea move");
+ action_button("end_sea_move", "End sea move");
+ action_button("group_move", "Group move");
+ action_button("end_group_move", "End group move");
+ action_button("muster", "Muster");
+ action_button("end_muster", "End muster");
+ action_button("end_retreat", "End retreat");
+ action_button("end_regroup", "End regroup");
+ action_button("end_move_phase", "End move phase");
action_button("pass", "Pass");
action_button("next", "Next");
action_button("undo", "Undo");