summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-01-25 17:33:33 +0100
committerTor Andersson <tor@ccxvii.net>2025-01-25 17:33:33 +0100
commitc3296b16c2430fefeedb223d71ac27db0c74d63a (patch)
tree8a618f6dfc66b85a88cb3fd871d500d98b64e712
parent97a65af76ed3fa247a8415a45e93b2c3dec59e5c (diff)
downloadmaria-c3296b16c2430fefeedb223d71ac27db0c74d63a.tar.gz
show piece abbreviation in tooltip
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/play.js b/play.js
index 1306071..e102523 100644
--- a/play.js
+++ b/play.js
@@ -986,7 +986,7 @@ function on_blur_city() {
function on_focus_piece(evt) {
let p = evt.target.my_id
- let text = piece_log_name[p]
+ let text = piece_abbr[p] + " - " + piece_log_name[p]
if (p < 20 && view.troops[p] > 0) {
text += " (" + view.troops[p] + " troops"
if (view.oos & (1 << p))