diff options
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -275,11 +275,10 @@ function build_user_interface() { elt.addEventListener("mousedown", on_click_space) elt.addEventListener("mouseenter", on_focus_space) elt.addEventListener("mouseleave", on_blur) - let bw = 8 - elt.style.top = y + "px" - elt.style.left = x + "px" - elt.style.width = (w - bw * 2) + "px" - elt.style.height = (h - bw * 2) + "px" + elt.style.top = (y-1) + "px" + elt.style.left = (x-1) + "px" + elt.style.width = (w+2) + "px" + elt.style.height = (h+2) + "px" space_layout_cube[i] = { x: x + Math.round(w/2), y: y + Math.round(h*1/2) } space_layout_disc[i] = { x: x + w, y: y + h } document.getElementById("spaces").appendChild(elt) @@ -428,6 +427,7 @@ function on_update() { for (let i = 0; i < space_count; ++i) { layout_cubes(layout[i], space_layout_cube[i].x, space_layout_cube[i].y) ui.spaces[i].classList.toggle("action", is_space_action(i)) + ui.spaces[i].classList.toggle("selected", i === view.where) } for (let i = 0; i < 4; ++i) { layout_disc(view.pieces[36+i], ui.discs[i]) @@ -468,6 +468,7 @@ function on_update() { action_button("end_event", "End Event") action_button("skip", "Skip") + action_button("pass", "Pass") action_button("done", "Done") action_button("undo", "Undo") } |