registration things

This commit is contained in:
Nikhil Nagarajan 2026-01-14 17:00:40 -05:00
parent a0f1441373
commit e1d89999d7
5 changed files with 17 additions and 2 deletions

View file

@ -95,7 +95,7 @@ Hooks.once('init', () => {
type: game.i18n.localize(typePath)
});
const { Items, Actors } = foundry.documents.collections;
const { Items, Actors, RollTables } = foundry.documents.collections;
Items.unregisterSheet('core', foundry.applications.sheets.ItemSheetV2);
Items.registerSheet(SYSTEM.id, applications.sheets.items.Ancestry, {
types: ['ancestry'],
@ -180,6 +180,12 @@ Hooks.once('init', () => {
label: sheetLabel('TYPES.Actor.party')
});
RollTables.unregisterSheet('core', foundry.applications.sheets.RollTableSheet);
RollTables.registerSheet(SYSTEM.id, applications.sheets.RollTableSheet, {
types: ['base'],
makeDefault: true,
});
DocumentSheetConfig.unregisterSheet(
CONFIG.ActiveEffect.documentClass,
'core',

View file

@ -1,3 +1,4 @@
export * as actors from './actors/_module.mjs';
export * as api from './api/_modules.mjs';
export * as items from './items/_module.mjs';
export * as rollTables from './rollTable/_module.mjs'

View file

@ -0,0 +1 @@
export { default as RollTableSheet } from './rollTable.mjs';

View file

@ -4,7 +4,7 @@ export default class DhRollTableSheet extends foundry.applications.sheets.RollTa
const parts= super.PARTS;
return{
summary: {
template: "ournewmodifiedsummary.hbs"
template: "templates\sheets\rollTable\summary.hbs"
},
...parts
};

View file

@ -0,0 +1,7 @@
<section class="tab{{#if tab.active}} active{{/if}}" data-group="{{tab.group}}" data-tab="{{tab.id}}">
NEW TABLE TEST
{{formGroup fields.description value=source.description rootId=rootId}}
{{formGroup fields.formula value=source.formula placeholder=formulaPlaceholder rootId=rootId}}
{{formGroup fields.replacement value=source.replacement rootId=rootId}}
{{formGroup fields.displayRoll value=source.displayRoll rootId=rootId}}
</section>