From fa93dc1cbb185bab17da9c09d6c2c08fefb2e99c Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 8 Oct 2023 12:45:42 +0200 Subject: Add tinted militia and reduced legions as option (on by default). Make it easier to see what is what in a mixed stack than just the tiny combat strength number. --- images/legion_reduced_tint.png | Bin 0 -> 69067 bytes images/militia_tint.png | Bin 0 -> 7119 bytes play.css | 23 ++++++++- play.html | 4 +- play.js | 21 +++++++- tools/colors.js | 110 +++++++++++++++++++++++++++++++++++++++++ tools/gencolors.js | 5 +- 7 files changed, 158 insertions(+), 5 deletions(-) create mode 100644 images/legion_reduced_tint.png create mode 100644 images/militia_tint.png create mode 100644 tools/colors.js diff --git a/images/legion_reduced_tint.png b/images/legion_reduced_tint.png new file mode 100644 index 0000000..96aba97 Binary files /dev/null and b/images/legion_reduced_tint.png differ diff --git a/images/militia_tint.png b/images/militia_tint.png new file mode 100644 index 0000000..bcdcf00 Binary files /dev/null and b/images/militia_tint.png differ diff --git a/play.css b/play.css index bdca4c8..22f2853 100644 --- a/play.css +++ b/play.css @@ -9,6 +9,9 @@ header.your_turn { background-color: orange; } #turn_info { background-color: gainsboro; } .role_vp { float: right; } +.checked::before { content: "\2714 " } +.unchecked::before { content: "\2714 "; color:transparent; } + body.Observer #hand_panel, body.Observer #draw_panel, body.Observer #discard_panel { display: none; } @@ -311,8 +314,8 @@ body.p2 #npg_galatia { display: block } .blue.action { box-shadow: 0 0 0 1px #113854, 0 0 0 4px white; } .yellow.action { box-shadow: 0 0 0 1px #553a00, 0 0 0 4px white; } .green.action { box-shadow: 0 0 0 1px #033600, 0 0 0 4px white; } -.legion.action { box-shadow: 0 0 0 1px #434343, 0 0 0 4px white; } -.militia.action { box-shadow: 0 0 0 1px #434343, 0 0 0 4px white; } +.legion.action { box-shadow: 0 0 0 1px #434343, 0 0 0 4px white !important; } +.militia.action { box-shadow: 0 0 0 1px #434343, 0 0 0 4px white !important; } .alamanni.action { box-shadow: 0 0 0 1px #393204, 0 0 0 4px white; } .franks.action { box-shadow: 0 0 0 1px #1d323a, 0 0 0 4px white; } @@ -520,6 +523,22 @@ body.shift .shapur.inactive { background-image: url(images/shapur.png) } .red.breakaway { background-image: url(images/red_breakaway.svg) } .yellow.breakaway { background-image: url(images/yellow_breakaway.svg) } +/* TINTED UNITS */ + +body.tint .militia { + background-color: #f3ddbd; + background-image: url(images/militia_tint.png); + border-color: #fffcdb #b8a385 #b8a385 #fffcdb; + box-shadow: 0 0 0 1px #4c3b1f, 1px 2px 4px #0008; +} + +body.tint .legion.reduced { + background-color: #f4cccd; + background-image: url(images/legion_reduced_tint.png); + border-color: #fff4f5 #ba9596 #ba9596 #fff4f5; + box-shadow: 0 0 0 1px #503133, 1px 2px 4px #0008; +} + /* CARDS */ #card_tip { diff --git a/play.html b/play.html index 4307497..8c07d39 100644 --- a/play.html +++ b/play.html @@ -12,7 +12,7 @@ - +
@@ -21,6 +21,8 @@