From 06baa3704a7e7466fb5fca11aba6a81a43f5ea3a Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 7 May 2023 15:00:52 +0200 Subject: Events. --- play.js | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) (limited to 'play.js') diff --git a/play.js b/play.js index 4d3bffb..af717c9 100644 --- a/play.js +++ b/play.js @@ -313,7 +313,7 @@ function layout_disc(s, disc) { disc.classList.remove("hide") disc.style.left = (space_layout_disc[s].x - 50 - 12) + "px" disc.style.top = (space_layout_disc[s].y - 20 - 8) + "px" - disc.style.zIndex = 51; + disc.style.zIndex = 51 } else disc.classList.add("hide") @@ -411,11 +411,11 @@ function on_update() { for (let i = 0; i < 36; ++i) { if (view.pieces[i] >= 0) { layout[view.pieces[i]].push(ui.cubes[i]) - ui.cubes[i].classList.remove("hide"); + ui.cubes[i].classList.remove("hide") ui.cubes[i].classList.toggle("action", is_piece_action(i)) } else { - ui.cubes[i].classList.add("hide"); + ui.cubes[i].classList.add("hide") } } for (let i = 0; i < space_count; ++i) { @@ -432,28 +432,31 @@ function on_update() { ui.cards[i].classList.toggle("selected", i === view.selected_card) } - action_button("commune", "Commune"); - action_button("versailles", "Versailles"); + action_button("commune", "Commune") + action_button("versailles", "Versailles") - action_button("spend", "Spend"); - action_button("draw", "Draw"); + action_button("spend", "Spend") + action_button("draw", "Draw") action_button("momentum", "Momentum") action_button("event", "Event") action_button("political", "Political") action_button("military", "Military") + action_button("public_opinion", "Public Opinion") + action_button("paris", "Paris") action_button("ops", "Operations") action_button("place", "Place") action_button("remove", "Remove") action_button("replace", "Replace") - action_button("end_remove", "End Remove"); - action_button("end_turn", "End Turn"); + action_button("end_remove", "End Remove") + action_button("end_ops", "End Operations") + action_button("end_event", "End Event") - action_button("skip", "Skip"); - action_button("done", "Done"); - action_button("undo", "Undo"); + action_button("skip", "Skip") + action_button("done", "Done") + action_button("undo", "Undo") } build_user_interface() -- cgit v1.2.3