diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-06-02 22:21:53 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-12-10 18:13:09 +0100 |
commit | ed285d6c4d588cc95574fcdb2e0c8b586965e881 (patch) | |
tree | b0bed9a2c39ddbaa76802ff502a7b723ee256de0 /play.js | |
parent | 3f4dbbd75f5ef743e2e669f6f0b73b608d2ab084 (diff) | |
download | plantagenet-ed285d6c4d588cc95574fcdb2e0c8b586965e881.tar.gz |
Hook up lord cylinder images.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -284,11 +284,6 @@ function on_focus_cylinder(evt) { let info = data.lords[lord] let loc = view.pieces.locale[lord] let tip = info.name - - if (loc >= CALENDAR) { - tip += ` - ${info.fealty} Fealty` - } - on_focus(tip) } @@ -738,7 +733,8 @@ function build_map() { data.lords.forEach((lord, ix) => { let e = ui.lord_cylinder[ix] = document.createElement("div") let name = clean_name(lord.name) - e.className = "cylinder lord lord_" + name + " hide" + let side = clean_name(lord.side) + e.className = "cylinder lord " + side + " lord_" + name + " hide" register_action(e, "lord", ix) register_tooltip(e, on_focus_cylinder) document.getElementById("pieces").appendChild(e) |