Statictidy5eStaticdnd5eFunction
A hook event that fires when items are dropped onto the actor sheet to be created. dnd5e.dropCreateItems
The sheet.
The items being dropped.
Optionalbehavior?: DropEffectValue | nullThe drag behavior.
Optionalevent?: EventThe event which triggered the item creation.
Staticdnd5eSomething has been dropped on an item or container sheet. Return false to prevent default behavior.
the target item
the target item sheet
the drop data
false to prevent default behavior, else the result is discarded
Staticdnd5eThe active effect context menu has established its options and is about to show.
The active effect document instance.
The menu items for this active effect.
true to allow the menu to show, false to prevent the default menu from showing.
Staticdnd5eThe facility occupant context menu has established its options and is about to show.
The affected actor.
The affected facility.
The occupant UUID.
The property for saving changes to the target occupant.
The index of the occupant.
The menu items for this occupant.
true to allow the menu to show, false to prevent the default menu from showing.
Staticdnd5eThe context menu for the advancements list has been constructed.
The HTML element to which the context options are attached.
The context menu entries.
true to allow the menu to show, false to prevent the default menu from showing.
Staticdnd5eThe item context menu has established its options and is about to show.
The item document instance.
The menu items for this item.
true to allow the menu to show, false to prevent the default menu from showing.
StaticfoundrySomething was dropped on an actor sheet. To cancel the drop, return false.
The affected actor.
The affected sheet.
The drop data.
true or nothing to allow the drop to continue, false to cancel the drop.
Statictidy5eStatictidy5eStatictidy5eThe facility add button has been clicked for the specified facility type. Normally, this prompts the Compendium Browser.
The inciting event.
The affected actor who will own the facility.
The type of facility that is intended to be added.
true to allow the default behavior, false to prevent it.
Statictidy5eA container's content concealment notice and description are being prepared.
This is related to when container.system.canViewContents is false.
Hook into this to change the data based on the affected
container document by setting the properties in the data parameter.
The last subscriber to make a change to a field is the winner.
The affected container.
Un-enriched HTML or plain text to use in the item summary area and the container sheet description tab. Localization keys are permitted. Default: the value in the container's "system.unidentified.description" field.
Denotes whether the description is editable on the container sheet.
Default: value of container.isOwner
The generic label to use when indicating that container contents cannot be presently viewed. Localization keys are permitted.
The property path to the concealed notice. Default: "system.unidentified.description"
Statictidy5eAn empty slot on a facility was clicked. Normally, this opens the Compendium Browser, scoped to actors of any type.
The inciting click event
The affected facility
The intended occupant type
The property path on the target facility to which changes would be applied
true to allow the default behavior, false to prevent it.
Statictidy5eA list of visible activities has been prepared for showing on a sheet for gameplay. This is in contrast to showing activities for maintenance in a place like the Item Activities tab.
The document (usually an item) which owns the activities.
A containing object with a filtered array of activities to show.
Statictidy5eThe description context menu has established its options and is about to show. This fires for HTML-enriched descriptions that support context menus.
The target document property associated with the particular description.
The menu items for this description.
true to allow the menu to show, false to prevent the default menu from showing.
Statictidy5eThe encounter member context menu has established its options and is about to show.
The affected group document instance.
The actor which is a member of the encounter.
The menu items for this encounter member.
true to allow the menu to show, false to prevent the default menu from showing.
Statictidy5eThe group member context menu has established its options and is about to show.
The affected group document instance.
The actor which is a member of the group.
The menu items for this group member.
true to allow the menu to show, false to prevent the default menu from showing.
Statictidy5eThe group skill roll context menu has established its options and is about to show.
The affected group document instance.
The key for the corresponding skill. Use it to look up the skill in CONFIG.DND5E.
The menu items for this group skill.
true to allow the menu to show, false to prevent the default menu from showing.
Statictidy5eThe actor skill roll context menu has established its options and is about to show.
The affected actor.
The key for the corresponding skill. Use it to look up the skill in CONFIG.DND5E.
The menu items for this actor skill.
true to allow the menu to show, false to prevent the default menu from showing.
Statictidy5eThe vehicle member context menu has established its options and is about to show. This can be for a member with a UUID or an empty slot where a member can go.
The affected group document instance.
The HTML element where the context menu trigger occurred.
The potential actor UUID which is a crew member of the vehicle.
The potential ID for the crewable item for which this context menu was triggered.
Where the trigger occurred—draft, crew, or passengers.
The menu items for this encounter member.
true to allow the menu to show, false to prevent the default menu from showing.
Statictidy5eStatictidy5eStatictidy5eStatictidy5eSheet item/effect sections are about to be configured. Use this hook to inject additional items, sections, etc., or to adjust context data.
The sheet application instance.
The sheet HTML element.
The data context from getData().
Statictidy5eAn active effect is about to be created for an owning document. This was initiated specifically through Tidy 5e Sheets, whether directly by the user, or indirectly through some user interaction.
The owning document instance which will receive the created effect.
The data used to create it.
The user who initiated the creation.
true to allow the effect creation, false to prevent it.
Statictidy5eAn item is about to be created for an owning document. This was initiated specifically through Tidy 5e Sheets, whether directly by the user, or indirectly through some user interaction.
The owning document instance which will receive the created item.
The data used to create it.
The user who initiated the creation.
true to allow the item creation, false to prevent it.
Statictidy5eThe portrait picker is about to open.
The actor sheet data from getData().
The triggering event.
true to allow the picker to open, false to prevent it.
Statictidy5eThe sheet context has been prepared and is about to be used for rendering the sheet.
the document (e.g., an Actor, an Item, etc.)
the document's sheet
the prepared context data
Statictidy5eA group ability prompt is about to execute.
The sheet application instance.
Options related to the eventual ability roll.
true to allow the prompt to continue, false to prevent it.
Statictidy5eA group saving throw prompt is about to execute.
The sheet application instance.
Options related to the eventual saving throw roll.
true to allow the prompt to continue, false to prevent it.
Statictidy5eA group skill prompt is about to execute.
The sheet application instance.
Options related to the eventual skill roll.
true to allow the prompt to continue, false to prevent it.
Statictidy5eA tab is about to be selected.
The sheet application instance.
The sheet's HTML element.
The current tab ID before selecting the new tab, and the new tab ID to be selected.
false to cancel tabbing.
Statictidy5eTidy 5e Sheets is ready to be used and customized.
The Tidy 5e Sheets API, used for customizing and registering content with Tidy 5e Sheets.
Statictidy5eStatictidy5eThe sheet application instance.
The sheet's HTML element.
an object that holds the unlocked property. Change unlocked to true for Edit Mode and false for Play Mode.
Hooks.on('tidy5e-sheet.sheetModeConfiguring', (app, element, config) => {
if (game.user.isGM || app.document.documentName !== 'Actor') {
return;
}
const playerUnlocked = !!foundry.utils.getProperty(
app.document,
playerUnlockedFlagProp
);
config.unlocked = playerUnlocked && app.isEditable;
});
Statictidy5eTheme settings, whether at world or sheet scope, have changed. Alternatively, themes are being previewed, and relevant subscribers need to refresh their settings.
Optionaldoc: any
when dealing with a specific sheet's theme changes, this is the affected document
OptionalliveThemeOverride: ThemeSettingsV3Statictidy5eStatictidy5eOptionalhookId: number
Manages all Hook usage in Tidy 5e Sheets