From 4cc31a4a900a93473f98a23a9de78ffe7001dbff Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 26 Oct 2024 00:36:46 +0200 Subject: show power card tooltip --- play.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'play.js') diff --git a/play.js b/play.js index 770e6d5..319f79c 100644 --- a/play.js +++ b/play.js @@ -476,7 +476,7 @@ function sub_card_name(match, p1) { function sub_power_card_name(match, p1) { let x = p1 | 0 - return `${power_cards[x].name}` + return `${power_cards[x].name}` } function sub_power_card_value(match, p1) { @@ -513,6 +513,14 @@ function on_blur_card_tip() { document.getElementById("tooltip").classList = "card hide" } +function on_focus_power_card_tip(card_number) { + document.getElementById("tooltip").className = "card power_" + card_number +} + +function on_blur_power_card_tip() { + document.getElementById("tooltip").classList = "card hide" +} + function on_focus_space_tip(id) { ui.spaces[id].classList.add("tip") } -- cgit v1.2.3