mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
Added a TemplateManager singleton for creating movable previewTemplates (#580)
This commit is contained in:
parent
c9f045a36f
commit
089657a896
4 changed files with 113 additions and 10 deletions
|
|
@ -19,6 +19,7 @@ import {
|
|||
import { placeables } from './module/canvas/_module.mjs';
|
||||
import { registerRollDiceHooks } from './module/dice/dhRoll.mjs';
|
||||
import './node_modules/@yaireo/tagify/dist/tagify.css';
|
||||
import TemplateManager from './module/documents/templateManager.mjs';
|
||||
|
||||
Hooks.once('init', () => {
|
||||
CONFIG.DH = SYSTEM;
|
||||
|
|
@ -139,6 +140,8 @@ Hooks.once('init', () => {
|
|||
CONFIG.ux.ContextMenu = applications.ux.DHContextMenu;
|
||||
CONFIG.ux.TooltipManager = documents.DhTooltipManager;
|
||||
|
||||
CONFIG.ux.TemplateManager = new TemplateManager();
|
||||
|
||||
game.socket.on(`system.${SYSTEM.id}`, socketRegistration.handleSocketEvent);
|
||||
|
||||
// Make Compendium Dialog resizable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue