This commit is contained in:
WBHarry 2026-01-14 23:04:20 +01:00
parent e1d89999d7
commit 38dd2993a1
5 changed files with 11 additions and 15 deletions

View file

@ -181,9 +181,9 @@ Hooks.once('init', () => {
}); });
RollTables.unregisterSheet('core', foundry.applications.sheets.RollTableSheet); RollTables.unregisterSheet('core', foundry.applications.sheets.RollTableSheet);
RollTables.registerSheet(SYSTEM.id, applications.sheets.RollTableSheet, { RollTables.registerSheet(SYSTEM.id, applications.sheets.rollTables.RollTableSheet, {
types: ['base'], types: ['base'],
makeDefault: true, makeDefault: true
}); });
DocumentSheetConfig.unregisterSheet( DocumentSheetConfig.unregisterSheet(

View file

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

View file

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

View file

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

View file

@ -1,10 +1,10 @@
//Setting RollTable //Setting RollTable
export default class DhRollTableSheet extends foundry.applications.sheets.RollTableSheet{ export default class DhRollTableSheet extends foundry.applications.sheets.RollTableSheet {
static get PARTS() { static get PARTS() {
const parts= super.PARTS; const parts = super.PARTS;
return{ return {
summary: { summary: {
template: "templates\sheets\rollTable\summary.hbs" template: 'templates\sheets\rollTable\summary.hbs'
}, },
...parts ...parts
}; };
@ -15,12 +15,8 @@ export default class DhRollTableSheet extends foundry.applications.sheets.RollTa
}; };
//Add formulafield //Add formulafield
static async #onAddAltFormula (event,target) { static async #onAddAltFormula(event, target) {}
}
//Remove formulafield //Remove formulafield
static async #onRemoveAltFormula (event,target) { static async #onRemoveAltFormula(event, target) {}
}
} }