From 2130e4b6486bf7dff444a954241e07535d221071 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 22 Jun 2024 12:44:15 +0200 Subject: Show offensive option in player list. --- play.css | 2 ++ play.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/play.css b/play.css index 61115f9..308cd65 100644 --- a/play.css +++ b/play.css @@ -24,6 +24,8 @@ #role_Maria_Theresa { background-color: var(--color-role-austria) } #role_Pompadour { background-color: var(--color-role-france) } +#role_Frederick.oo .role_name::after { content: " (OO)" } + .role.active span { font-weight: bold } header.your_turn.prussia { background-color: var(--color-light-prussia); } diff --git a/play.js b/play.js index 7d25ba2..3bd7b21 100644 --- a/play.js +++ b/play.js @@ -1157,6 +1157,8 @@ function on_update() { ui.header.classList.toggle("imperial", view.power === P_IMPERIAL) ui.header.classList.toggle("france", view.power === P_FRANCE) + roles.Frederick.element.classList.toggle("oo", !!view.oo) + update_player_power_list("Frederick") update_player_power_list("Elisabeth") update_player_power_list("Maria Theresa") -- cgit v1.2.3