Avancement feuille de personnage
Avancement feuille d'items Ajout des données JSON pour génération des compendiums.
This commit is contained in:
@ -10,22 +10,22 @@ export class BoLItemSheet extends ItemSheet {
|
||||
static get defaultOptions() {
|
||||
return mergeObject(super.defaultOptions, {
|
||||
classes: ["bol", "sheet", "item"],
|
||||
template: "systems/bol/templates/item/item-sheet.hbs",
|
||||
width: 520,
|
||||
height: 480,
|
||||
tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }]
|
||||
});
|
||||
}
|
||||
|
||||
/** @override */
|
||||
get template() {
|
||||
const path = "systems/bol/templates/item";
|
||||
// Return a single sheet for all item types.
|
||||
//return `${path}/item-sheet.hbs`;
|
||||
// Alternatively, you could use the following return statement to do a
|
||||
// unique item sheet by type, like `weapon-sheet.html`.
|
||||
|
||||
return `${path}/item-${this.item.data.type}-sheet.hbs`;
|
||||
}
|
||||
// /** @override */
|
||||
// get template() {
|
||||
// const path = "systems/bol/templates/item";
|
||||
// // Return a single sheet for all item types.
|
||||
// //return `${path}/item-sheet.hbs`;
|
||||
// // Alternatively, you could use the following return statement to do a
|
||||
// // unique item sheet by type, like `weapon-sheet.html`.
|
||||
// return `${path}/item-${this.item.data.type}-sheet.hbs`;
|
||||
// }
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
||||
@ -69,10 +69,8 @@ export class BoLItemSheet extends ItemSheet {
|
||||
/** @override */
|
||||
activateListeners(html) {
|
||||
super.activateListeners(html);
|
||||
|
||||
// Everything below here is only needed if the sheet is editable
|
||||
if (!this.options.editable) return;
|
||||
|
||||
// Roll handlers, click handlers, etc. would go here.
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user