diff options
-rw-r--r-- | play.js | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) { |