modify ruler and token ruler to show distance ranges (#40)

This commit is contained in:
IrkTheImp 2025-05-23 18:19:37 -05:00 committed by GitHub
parent 504e2ca0f2
commit 2d832e74d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 47 additions and 6 deletions

View file

@ -9,6 +9,7 @@ import { registerDHPSettings } from './module/applications/settings.mjs';
import DhpChatLog from './module/ui/chatLog.mjs';
import DhpPlayers from './module/ui/players.mjs';
import DhpRuler from './module/ui/ruler.mjs';
import DhpTokenRuler from './module/ui/tokenRuler.mjs';
globalThis.SYSTEM = SYSTEM;
@ -83,6 +84,7 @@ Hooks.once('init', () => {
CONFIG.ui.combat = DhpCombatTracker;
CONFIG.ui.chat = DhpChatLog;
CONFIG.ui.players = DhpPlayers;
CONFIG.Token.rulerClass = DhpTokenRuler;
game.socket.on(`system.${SYSTEM.id}`, handleSocketEvent);