Compare commits

..

1 commit
1.1.0 ... main

Author SHA1 Message Date
a169881a25 make tooltips update instantly 2026-03-24 02:56:30 +01:00
2 changed files with 6 additions and 2 deletions

View file

@ -4,8 +4,8 @@
"description": "Adds a button to the token hover HUD to toggle the spotlight for Daggerheart.", "description": "Adds a button to the token hover HUD to toggle the spotlight for Daggerheart.",
"url": "https://git.geeks.gay/cosmo/dh-token-spotlight", "url": "https://git.geeks.gay/cosmo/dh-token-spotlight",
"manifest": "https://git.geeks.gay/cosmo/dh-token-spotlight/raw/branch/main/module.json", "manifest": "https://git.geeks.gay/cosmo/dh-token-spotlight/raw/branch/main/module.json",
"download": "https://git.geeks.gay/cosmo/dh-token-spotlight/releases/download/1.1.0/dh-token-spotlight.zip", "download": "https://git.geeks.gay/cosmo/dh-token-spotlight/releases/download/1.1.1/dh-token-spotlight.zip",
"version": "1.1.0", "version": "1.1.1",
"compatibility": { "compatibility": {
"minimum": "13", "minimum": "13",
"verified": "13" "verified": "13"

View file

@ -54,9 +54,11 @@ Hooks.on('renderTokenHUD', (app, html, data) => {
if (wasActive && !isRequestingMsg) { if (wasActive && !isRequestingMsg) {
btn.removeClass('active'); btn.removeClass('active');
icon.removeClass('fa-solid dh-spotlight-glow').addClass('fa-regular'); icon.removeClass('fa-solid dh-spotlight-glow').addClass('fa-regular');
btn.attr('title', 'Grant Spotlight');
} else { } else {
btn.addClass('active'); btn.addClass('active');
icon.removeClass('fa-regular dh-spotlight-request').addClass('fa-solid dh-spotlight-glow'); icon.removeClass('fa-regular dh-spotlight-request').addClass('fa-solid dh-spotlight-glow');
btn.attr('title', 'Take Spotlight');
} }
await ui.combat.setCombatantSpotlight(token.combatant.id); await ui.combat.setCombatantSpotlight(token.combatant.id);
} }
@ -76,9 +78,11 @@ Hooks.on('renderTokenHUD', (app, html, data) => {
if (currentlyRequesting) { if (currentlyRequesting) {
btn.removeClass('active'); btn.removeClass('active');
icon.removeClass('fa-solid dh-spotlight-request').addClass('fa-regular'); icon.removeClass('fa-solid dh-spotlight-request').addClass('fa-regular');
btn.attr('title', 'Request Spotlight');
} else { } else {
btn.addClass('active'); btn.addClass('active');
icon.removeClass('fa-regular').addClass('fa-solid dh-spotlight-request'); icon.removeClass('fa-regular').addClass('fa-solid dh-spotlight-request');
btn.attr('title', 'Cancel Spotlight Request');
} }
await token.combatant.update({ await token.combatant.update({