Skip to content

Commit

Permalink
Tweak to light source tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
lupestro committed Oct 20, 2024
1 parent 59bc336 commit 07b29ec
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Middle Kingdom - v10 -> main branch

### 2.16.0 - October 20, 2024 - Token HUD light source tooltips
- [FEATURE] Tooltips for the light sources are now much easier to read (and they don't disappear altogether in v13 proto 1. Now using standard Foundry tooltips.)
- [INTERNAL] This module appears to work fine in v13.332, but is likely to break and need adjustment when Token HUD becomes a v2 app later in the v13 development cycle. The maximum version has been set accordingly.

### 2.15.1 - September 2, 2024 - Better error message for missing user sources file
- [BUGFIX] The error message for a missing user sources file was cryptic - now just tells you
- [BUGFIX] The fallbacks for lights as object to array and for missing states property weren't working
Expand Down
6 changes: 3 additions & 3 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "torch",
"title": "Torch",
"description": "Torch HUD Controls",
"version": "2.15.1",
"version": "2.16.0",
"authors": [
{
"name": "Deuce",
Expand Down Expand Up @@ -77,11 +77,11 @@
"torch.css"
],
"manifest": "https://raw.githubusercontent.com/League-of-Foundry-Developers/torch/main/module.json",
"download": "https://github.com/League-of-Foundry-Developers/torch/releases/download/v2.15.1/torch-v2.15.1.zip",
"download": "https://github.com/League-of-Foundry-Developers/torch/releases/download/v2.16.0/torch-v2.16.0.zip",
"url": "https://github.com/League-of-Foundry-Developers/torch",
"compatibility": {
"minimum": "10",
"verified": "12.331",
"maximum": "12"
"maximum": "13.332"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "torch",
"version": "2.15.1",
"version": "2.16.0",
"description": "Torch HUD Controls",
"main": "src/torch.js",

Expand Down
6 changes: 3 additions & 3 deletions src/hud.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const BUTTON_HTML = `<div class="control-icon torch"><i class="fas fa-fire"></i></div>`;
const BUTTON_HTML = `<div class="control-icon torch" data-tooltip="Torch"><i class="fas fa-fire"></i></div>`;
const QUERY_BUTTON_HTML = `<div class="control-icon torch"><i class="fas fa-question"></i></div>`;
const DISABLED_ICON_HTML = `<i class="fas fa-slash"></i>`;
const SOURCE_MENU = `<div class="control-icon light-source-menu"></div>`;
const SOURCE_MENU_ITEM = (img, tooltip) => {
return `<button type="button" class="light-source-menu-item" >
<img src="${img}" title="${tooltip}" />
return `<button type="button" data-tooltip="${tooltip}" data-tooltip-direction="LEFT" class="light-source-menu-item" >
<img src="${img}"/>
</button>`;
};

Expand Down

0 comments on commit 07b29ec

Please sign in to comment.