Begin work on the updated delve dice HUD that is better in every way than the other version

This commit is contained in:
Oliver-Akins 2025-02-27 22:56:36 -07:00
parent 00228d3aae
commit c7342b6402
13 changed files with 169 additions and 7 deletions

View file

@ -1,6 +1,7 @@
// Applications
import { AllItemSheetV1 } from "../Apps/ItemSheets/AllItemSheetV1.mjs";
import { CombinedHeroSheet } from "../Apps/ActorSheets/CombinedHeroSheet.mjs";
import { DelveDiceHUD } from "../Apps/DelveDiceHUD.mjs";
import { DelveTourApp } from "../Apps/DelveTourApp.mjs";
import { HeroSkillsCardV1 } from "../Apps/ActorSheets/HeroSkillsCardV1.mjs";
import { HeroSummaryCardV1 } from "../Apps/ActorSheets/HeroSummaryCardV1.mjs";
@ -39,6 +40,8 @@ Hooks.once(`init`, () => {
CONFIG.Combat.initiative.decimals = 2;
CONFIG.ui.crypt = DelveTourApp;
CONFIG.ui.delveDice = DelveDiceHUD;
// globalThis.delveDice = new DelveDiceHUD();
// #region Settings
registerMetaSettings();

View file

@ -23,6 +23,8 @@ Hooks.once(`ready`, () => {
ui.crypt.render({ force: true });
};
ui.delveDice.render({ force: true });
// MARK: 1-time updates
if (!game.settings.get(`ripcrypt`, `firstLoadFinished`)) {
// Update the turnMarker to be the RipCrypt defaults