mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-03-07 22:46:12 +01:00
registration things
This commit is contained in:
parent
a0f1441373
commit
e1d89999d7
5 changed files with 17 additions and 2 deletions
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
1
module/applications/sheets/rollTable/_module.mjs
Normal file
1
module/applications/sheets/rollTable/_module.mjs
Normal file
|
|
@ -0,0 +1 @@
|
|||
export { default as RollTableSheet } from './rollTable.mjs';
|
||||
|
|
@ -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
|
||||
};
|
||||
|
|
|
|||
7
templates/sheets/rollTable/summary.hbs
Normal file
7
templates/sheets/rollTable/summary.hbs
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue