Skip to content

Artificial Actor/Item types, settings, and Hooks

Compare
Choose a tag to compare
@zeel01 zeel01 released this 19 Aug 14:40
· 15 commits to main since this release
2a1fe21

Added the ability to give Actor and Item documents artificial types.

You can now use the special _document-sheet-registrar.type flag on Actor and on Item documents.

Added Settings Object/Hooks

Added the preDocumentSheetRegistrarInit hook, which passes an object of Boolean settings, you must enable (set true) the settings for document types you need to use. See readme for details.

Added Init Hook

In Foundry 0.8.9 this shouldn't be required anymore, and using the init hook will likely be fine for registering your sheet. However, in 0.8.8 or in case you want a bit more guarantee, we have added the documentSheetRegistrarInit hook which fires once DSR has finished setting up, you can rely on this hook for appropriate timing of your sheet registration. The hook also receives an object of data about the active sheet registrars, in case that may be of some use.