Statictidy5eStaticdnd5eSomething 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.
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 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.
Statictidy5eStatictidy5eStatictidy5eSheet 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.
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.
Statictidy5eThe actor sheet has rendered all content and registered custom content. Is called on partial and full renders.
The sheet application instance.
The sheet's HTML element.
The data context from getData().
true when performing a full re-render; false when performing a partial re-render.
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: anywhen dealing with a specific sheet's theme changes, this is the affected document
Statictidy5eStatictidy5eOptionalhookId: number
Manages all Hook usage in Tidy 5e Sheets