diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-25 19:30:37 +0100 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-11-25 19:30:37 +0100 |
commit | ee335ce662ce60b1b64c977ca8bf9045d8ef2863 (patch) | |
tree | f6966e10435d14cf5e27ffba0a58e7328f051aad /play.js | |
parent | 0d3bc033f8ebf9f9700f190fe00217ee36ce883f (diff) | |
download | votes-for-women-ee335ce662ce60b1b64c977ca8bf9045d8ef2863.tar.gz |
show_opponents_hand_discard_1_draw_1 and select_1_card_from_draw_deck_play_event_shuffle
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -668,6 +668,7 @@ function on_update() { // eslint-disable-line no-unused-vars } document.getElementById("hand").replaceChildren() + document.getElementById("set_aside").replaceChildren() document.getElementById("support_claimed").replaceChildren() document.getElementById("support_discard").replaceChildren() document.getElementById("opposition_claimed").replaceChildren() @@ -684,6 +685,14 @@ function on_update() { // eslint-disable-line no-unused-vars document.getElementById("hand_panel").classList.add("hide") } + if (view.set_aside.length) { + document.getElementById("set_aside_panel").classList.remove("hide") + for (let c of view.set_aside) + document.getElementById("set_aside").appendChild(ui.cards[c]) + } else { + document.getElementById("set_aside_panel").classList.add("hide") + } + for (let c of view.support_claimed) document.getElementById("support_claimed").appendChild(ui.cards[c]) for (let c of view.support_discard) @@ -752,7 +761,6 @@ function on_update() { // eslint-disable-line no-unused-vars let state_cubes = [] for (let c = 0; c < purple_cubes(i); ++c) { e = ui.cubes[cube_idx++] - // TODO track both state and color e.my_us_state = i e.my_cube = PURPLE e.classList.add("purple") |