From 74d2e6efd24db8570cd64f74c7de109c5b094c70 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 13 Aug 2023 16:35:03 +0200 Subject: Place HQ. --- play.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'play.js') diff --git a/play.js b/play.js index 0ad5f78..8c85772 100644 --- a/play.js +++ b/play.js @@ -221,8 +221,8 @@ function on_update() { } else if (hex === 100 || hex === 101) { // AVAILABLE DETACHMENTS ui.pieces[id].classList.remove("hide") - ui.pieces[id].classList.remove("flip") - let x = 600 + 20 + ui.stack[hex] * 50 + ui.pieces[id].classList.toggle("flip", (view.pieces[id] & 1) === 1) + let x = 600 + 20 + ui.stack[hex] * 60 let y = 1650 + 20 + 60 * (hex-100) ui.stack[hex] += 1 ui.pieces[id].style.top = y + "px" @@ -263,11 +263,8 @@ function on_update() { } } - action_button("edit_town", "Town") - action_button("edit_stream", "Stream") - action_button("edit_road", "Road") - action_button("next", "Next") + action_button("done", "Done") action_button("pass", "Pass") action_button("undo", "Undo") } -- cgit v1.2.3