Feature/89 gm fear display (#90)

* fear display
This commit is contained in:
Dapoulp 2025-06-01 02:48:14 +02:00 committed by GitHub
parent 4cdd2f05eb
commit d30ae91109
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 401 additions and 2 deletions

View file

@ -13,6 +13,7 @@ import DhpTokenRuler from './module/ui/tokenRuler.mjs';
import { dualityRollEnricher } from './module/enrichers/DualityRollEnricher.mjs';
import { getCommandTarget, rollCommandToJSON, setDiceSoNiceForDualityRoll } from './module/helpers/utils.mjs';
import { abilities } from './module/config/actorConfig.mjs';
import Resources from './module/applications/resources.mjs';
globalThis.SYSTEM = SYSTEM;
@ -92,9 +93,11 @@ Hooks.once('init', () => {
CONFIG.Combat.documentClass = documents.DhpCombat;
CONFIG.ui.combat = DhpCombatTracker;
CONFIG.ui.chat = DhpChatLog;
CONFIG.ui.players = DhpPlayers;
// CONFIG.ui.players = DhpPlayers;
CONFIG.Token.rulerClass = DhpTokenRuler;
CONFIG.ui.resources = Resources;
game.socket.on(`system.${SYSTEM.id}`, handleSocketEvent);
// Make Compendium Dialog resizable
@ -106,6 +109,11 @@ Hooks.once('init', () => {
return preloadHandlebarsTemplates();
});
Hooks.on('ready', () => {
ui.resources = new CONFIG.ui.resources();
ui.resources.render({force: true});
})
Hooks.once('dicesoniceready', () => {});
Hooks.on(socketEvent.GMUpdate, async (action, uuid, update) => {