Mixin that eliminates boilerplate shared across all BMS item sheets:
_prepareContext
_preparePartContext
_getHeaderControls
_onEditImage
_onManageSnapshots
_onDropActiveEffect
The host sheet must:
editImage: SheetClass._onEditImage
await super._prepareContext(options)
Sheets with custom _preparePartContext logic (effect-sheet, journal pages) should NOT use this mixin or should override _preparePartContext.
Mixin that eliminates boilerplate shared across all BMS item sheets:
_prepareContextseeds context.tabs/item/system/flags/config_preparePartContextdefault (context.tab = context.tabs[partId])_getHeaderControlsunshifts Edit Image + Snapshots buttons for owners_onEditImage/_onManageSnapshotsstatic action handlers_onDropActiveEffectstandard guardThe host sheet must:
editImage: SheetClass._onEditImagein DEFAULT_OPTIONS.actionsawait super._prepareContext(options)and use the returned contextSheets with custom
_preparePartContextlogic (effect-sheet, journal pages) should NOT use this mixin or should override_preparePartContext.