Add DialogManager to a global API and create the Ask dialog for the user
This commit is contained in:
parent
02b49687cf
commit
44a88cc7b5
10 changed files with 334 additions and 1 deletions
30
module/api.mjs
Normal file
30
module/api.mjs
Normal 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,
|
||||
},
|
||||
}),
|
||||
},
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue