Skip to content

Commit

Permalink
register sheet with betterRolls
Browse files Browse the repository at this point in the history
  • Loading branch information
akrigline committed Sep 13, 2020
1 parent 3b9b9b3 commit 063cbe0
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/foundryvtt-compactBeyond5eSheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,17 +185,22 @@ Hooks.once('setup', function () {
// ready
});

// Register compactBeyond5eSheet Sheet
Actors.registerSheet('dnd5e', CompactBeyond5eSheet, {
types: ['character'],
makeDefault: false,
});

/* ------------------------------------ */
/* When ready */
/* ------------------------------------ */
Hooks.once('ready', function () {
// Do anything once the module is ready
// register this sheet with BetterRolls
//@ts-ignore
if (window.BetterRolls) {
//@ts-ignore
window.BetterRolls.hooks.addActorSheet('CompactBeyond5eSheet');
}
});

// Add any additional hooks if necessary

// Register compactBeyond5eSheet Sheet
Actors.registerSheet('dnd5e', CompactBeyond5eSheet, {
types: ['character'],
makeDefault: false,
});

0 comments on commit 063cbe0

Please sign in to comment.