From f6e82a42e719362a90a6acf9c312388dec95b90f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 12 Feb 2025 12:11:17 +0100 Subject: Use multi-active state for drawing cards and pax deorum. --- play.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'play.js') diff --git a/play.js b/play.js index 8d1e9e3..ed3ab14 100644 --- a/play.js +++ b/play.js @@ -1574,7 +1574,10 @@ function on_update() { ui.active_event.appendChild(ui.event_cards[view.event]) ui.played_panel.className = "panel p_" + PLAYER_CLASS[view.current] - ui.played_header.textContent = PLAYER_NAME[view.current] + " Played" + if (typeof view.current === "number") + ui.played_header.textContent = PLAYER_NAME[view.current] + " Played" + else + ui.played_header.textContent = "Played" ui.played.className = "panel_body p_" + PLAYER_CLASS[view.current] ui.played.replaceChildren() if (view.played) { -- cgit v1.2.3