summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-11-08 20:31:08 +0100
committerTor Andersson <tor@ccxvii.net>2024-11-08 20:31:15 +0100
commitd668454c484348c0eb23e26c40fd213d443e2480 (patch)
tree3ae3941b30bbb576dce1b11ec36b8964e7cde4a8 /play.js
parentbc4f9c520a403e7dea42e9c9d9198afab8a8f858 (diff)
downloadmaria-d668454c484348c0eb23e26c40fd213d443e2480.tar.gz
Pretty political shift buttons.
Diffstat (limited to 'play.js')
-rw-r--r--play.js35
1 files changed, 27 insertions, 8 deletions
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 = [
'<img class="saxony" height="24" src="images/role_saxony.2x.png" alt="Saxony">',
]
+const RU_LEFT = '<img class="shift_arrow" height="18" src="images/track_left_russia.svg">'
+const IT_LEFT = '<img class="shift_arrow" height="18" src="images/track_left_italy.svg">'
+const SX_LEFT = '<img class="shift_arrow" height="18" src="images/track_left_saxony.svg">'
+const RU_RIGHT = '<img class="shift_arrow" height="18" src="images/track_right_russia.svg">'
+const IT_RIGHT = '<img class="shift_arrow" height="18" src="images/track_right_italy.svg">'
+const SX_RIGHT = '<img class="shift_arrow" height="18" src="images/track_right_saxony.svg">'
+const SX_BOX = '<img class="shift_track" height="20" src="images/track_box_saxony.png">'
+const IT_BOX = '<img class="shift_track" height="20" src="images/track_box_italy.png">'
+const RU_BOX = '<img class="shift_track" height="20" src="images/track_box_russia.png">'
+
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)