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:
WBHarry 2025-07-09 02:40:24 +02:00 committed by GitHub
parent 9189a95ea3
commit e6ec486072
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 123 additions and 3 deletions

View file

@ -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(