diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -284,6 +284,7 @@ function set_has(set, item) { } const PLAYER_CLASS = [ "red", "blue", "yellow", "green" ] +const PLAYER_NAME = [ "Red", "Blue", "Yellow", "Green" ] const BARBARIAN_CLASS = [ "alamanni", "franks", "goths", "sassanids", "nomads" ] const BOXES = { @@ -665,6 +666,7 @@ let ui = { active_event: document.getElementById("active_event"), combat_mask: document.getElementById("combat_mask"), discard: document.getElementById("discard"), + played_header: document.getElementById("played_header"), played: document.getElementById("played"), market: document.getElementById("market"), pieces: document.getElementById("pieces"), @@ -1445,6 +1447,9 @@ function on_update() { ui.active_event.replaceChildren() ui.active_event.appendChild(ui.event_cards[view.event]) + ui.played_header.className = "panel_header p_" + PLAYER_CLASS[view.current] + ui.played_header.textContent = PLAYER_NAME[view.current] + " Played" + ui.played.className = "panel_body p_" + PLAYER_CLASS[view.current] ui.played.replaceChildren() if (view.played) { for (let c of view.played) { |