From d668454c484348c0eb23e26c40fd213d443e2480 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 8 Nov 2024 20:31:08 +0100 Subject: Pretty political shift buttons. --- play.js | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) (limited to 'play.js') diff --git a/play.js b/play.js index 77d71a4..8ebe698 100644 --- a/play.js +++ b/play.js @@ -685,6 +685,16 @@ const power_image = [ 'Saxony', ] +const RU_LEFT = '' +const IT_LEFT = '' +const SX_LEFT = '' +const RU_RIGHT = '' +const IT_RIGHT = '' +const SX_RIGHT = '' +const SX_BOX = '' +const IT_BOX = '' +const RU_BOX = '' + const power_badge = [ make_badge("france"), make_badge("prussia"), @@ -1552,14 +1562,23 @@ function on_update() { action_button_with_argument("suit", HEARTS, colorize_H) action_button_with_argument("suit", DIAMONDS, colorize_D) - action_button_with_argument("shift", -2, "\u2b05\u2b05") - action_button_with_argument("shift", -1, "\u2b05") - action_button_with_argument("shift", +1, "\u27a1") - action_button_with_argument("shift", +2, "\u27a1\u27a1") - action_button_with_argument("shift", +3, "\u27a1\u27a1\u27a1") - action_button_with_argument("shift", +4, "\u27a1\u27a1\u27a1\u27a1") - action_button_with_argument("shift", +5, "\u27a1\u27a1\u27a1\u27a1") - action_button_with_argument("shift", +6, "\u27a1\u27a1\u27a1\u27a1") + action_button_with_argument("shift_russia", -2, RU_LEFT + RU_LEFT + RU_BOX) + action_button_with_argument("shift_russia", -1, RU_LEFT + RU_BOX) + action_button_with_argument("shift_russia", 1, RU_BOX + RU_RIGHT) + action_button_with_argument("shift_russia", 2, RU_BOX + RU_RIGHT + RU_RIGHT) + + action_button_with_argument("shift_italy", -2, IT_LEFT + IT_LEFT + IT_BOX) + action_button_with_argument("shift_italy", -1, IT_LEFT + IT_BOX) + action_button_with_argument("shift_italy", 1, IT_BOX + IT_RIGHT) + action_button_with_argument("shift_italy", 2, IT_BOX + IT_RIGHT + IT_RIGHT) + + action_button_with_argument("shift_saxony", -1, SX_LEFT + SX_BOX) + action_button_with_argument("shift_saxony", 1, SX_BOX + SX_RIGHT) + action_button_with_argument("shift_saxony", 2, SX_BOX + SX_RIGHT + SX_RIGHT) + action_button_with_argument("shift_saxony", 3, SX_BOX + SX_RIGHT + SX_RIGHT + SX_RIGHT) + action_button_with_argument("shift_saxony", 4, SX_BOX + SX_RIGHT + SX_RIGHT + SX_RIGHT + SX_RIGHT) + action_button_with_argument("shift_saxony", 5, SX_BOX + SX_RIGHT + SX_RIGHT + SX_RIGHT + SX_RIGHT + SX_RIGHT) + action_button_with_argument("shift_saxony", 6, SX_BOX + SX_RIGHT + SX_RIGHT + SX_RIGHT + SX_RIGHT + SX_RIGHT + SX_RIGHT) for (let v = 16; v >= 0; --v) action_button_with_argument("value", v, v) -- cgit v1.2.3