Compare commits

..

No commits in common. "main" and "1.1.0" have entirely different histories.
main ... 1.1.0

2 changed files with 2 additions and 6 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.1/dh-token-spotlight.zip", "download": "https://git.geeks.gay/cosmo/dh-token-spotlight/releases/download/1.1.0/dh-token-spotlight.zip",
"version": "1.1.1", "version": "1.1.0",
"compatibility": { "compatibility": {
"minimum": "13", "minimum": "13",
"verified": "13" "verified": "13"

View file

@ -54,11 +54,9 @@ 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);
} }
@ -78,11 +76,9 @@ 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({