summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/play.js b/play.js
index 91a9afb..eb6ea6f 100644
--- a/play.js
+++ b/play.js
@@ -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")
}