From 2505041778d8ca6613be6de39dd34bc938cba6f2 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 14 Mar 2023 00:33:38 +0100 Subject: WIP shipment layout --- play.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/play.js b/play.js index daec377..16bf3dd 100644 --- a/play.js +++ b/play.js @@ -885,9 +885,10 @@ function on_update() { list.length = 0 for (let i = 0; i < 4; ++i) { let shx = view.shipments[i] - if (shx === 0) { + if (shx === 0) list.push(ui.shipments[i]) - } else if ((shx & 3) === 0) { + /* + if ((shx & 3) === 0) { let holder = ui.pieces[shx >> 2] place_piece_under(ui.shipments[i], holder) } else { @@ -895,6 +896,7 @@ function on_update() { let xy = get_center_xy(shx >> 2) place_piece(ui.shipments[i], xy[0] - 26, xy[1] - 72, 0) } + */ if (view.actions && view.actions.shipment && set_has(view.actions.shipment, i)) ui.shipments[i].classList.add("action") else -- cgit v1.2.3