mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-08 06:56:12 +01:00
Changed Cone template to be 'In Front', acting as a 180 degree cone
This commit is contained in:
parent
13f65e514a
commit
4dc0e79aec
5 changed files with 79 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
|||
export default class DhTooltipManager extends foundry.helpers.interaction.TooltipManager {
|
||||
async activate(element, options = {}) {
|
||||
let html = options.html;
|
||||
if (element.dataset.tooltip.startsWith('#item#')) {
|
||||
if (element.dataset.tooltip?.startsWith('#item#')) {
|
||||
const item = await foundry.utils.fromUuid(element.dataset.tooltip.slice(6));
|
||||
if (item) {
|
||||
html = await foundry.applications.handlebars.renderTemplate(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue