Add DialogManager to a global API and create the Ask dialog for the user

This commit is contained in:
Oliver-Akins 2025-07-24 20:34:17 -06:00
parent 02b49687cf
commit 44a88cc7b5
10 changed files with 334 additions and 1 deletions

30
module/api.mjs Normal file
View file

@ -0,0 +1,30 @@
// Apps
import { Ask } from "./apps/Ask.mjs";
import { AttributeManager } from "./apps/AttributeManager.mjs";
import { PlayerSheet } from "./apps/PlayerSheet.mjs";
// Utils
import { attributeSorter } from "./utils/attributeSort.mjs";
import { DialogManager } from "./utils/DialogManager.mjs";
import { toID } from "./utils/toID.mjs";
const { deepFreeze } = foundry.utils;
Object.defineProperty(
globalThis,
`taf`,
{
value: deepFreeze({
DialogManager,
Apps: {
Ask,
AttributeManager,
PlayerSheet,
},
utils: {
attributeSorter,
toID,
},
}),
},
);