From 1648768bd0cead8658b5bad57284a34a7723964f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 27 May 2024 18:12:35 +0200 Subject: add bang image (twemoji u+1f4a5 collision symbol) --- images/bang.svg | 1 + play.css | 10 +++++----- play.js | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 images/bang.svg diff --git a/images/bang.svg b/images/bang.svg new file mode 100644 index 0000000..36c50d6 --- /dev/null +++ b/images/bang.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/play.css b/play.css index d4b95c6..e6b3e28 100644 --- a/play.css +++ b/play.css @@ -235,11 +235,11 @@ TWOD.piece.cylinder { #combat { position: absolute; - width: 52px; - height: 52px; - border: 4px solid #c00; - background-color: #c008; - border-radius: 50%; + width: 36px; + height: 36px; + background-image: url(images/bang.svg); + background-size: contain; + background-repeat: no-repeat; } .panel { diff --git a/play.js b/play.js index 4c14fde..2b52dee 100644 --- a/play.js +++ b/play.js @@ -691,8 +691,8 @@ function layout_train(id, s) { function layout_combat_marker() { let x = (data.cities.x[view.attacker] + data.cities.x[view.defender]) >> 1 let y = (data.cities.y[view.attacker] + data.cities.y[view.defender]) >> 1 - ui.combat.style.left = x - 30 + "px" - ui.combat.style.top = y - 30 + "px" + ui.combat.style.left = x - 20 + "px" + ui.combat.style.top = y - 20 + "px" ui.combat.style.zIndex = y } -- cgit v1.2.3