From 1351599374d27912b055b0dfba3ba93824ba3cbb Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 1 Sep 2023 12:39:36 +0200 Subject: Fix support boxes 5-8 in Italia. --- play.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/play.js b/play.js index 06fb3e8..befa0f3 100644 --- a/play.js +++ b/play.js @@ -833,6 +833,16 @@ function create_support_buttons(region) { e.style.top = y + "px" e.style.left = x + "px" } + if (region === ITALIA) { + [ x0, y0 ] = BOXES["Italia Support 2"] + for (let i = 5; i <= 7; ++i) { + let x = Math.floor(-1 + x0 + (i-5) * 51.6666) + let y = (-1 + y0) + let e = create_thing({ className: "support s" + i, my_action: "support", my_id: (region << 3) + i }) + e.style.top = y + "px" + e.style.left = x + "px" + } + } } function is_action(action, arg) { -- cgit v1.2.3