mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
In Front Template (#299)
* Added confirm dialogs to delete * Localization fix * Changed Cone template to be 'In Front', acting as a 180 degree cone * Changed to keep the original Cone function
This commit is contained in:
parent
9189a95ea3
commit
e6ec486072
6 changed files with 123 additions and 3 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