Add a datasheet for untyped items and foils
This commit is contained in:
parent
3d8d041915
commit
0f28e23b5c
7 changed files with 201 additions and 0 deletions
27
module/sheets/Datasheets/UntypedDataSheet.mjs
Normal file
27
module/sheets/Datasheets/UntypedDataSheet.mjs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
export class UntypedDataSheet extends ItemSheet {
|
||||
static get defaultOptions() {
|
||||
let opts = foundry.utils.mergeObject(
|
||||
super.defaultOptions,
|
||||
{
|
||||
template: `systems/dotdungeon/templates/datasheets/untyped.hbs`,
|
||||
width: 650,
|
||||
height: 700
|
||||
},
|
||||
);
|
||||
opts.classes.push(`dotdungeon`, `style-v3`);
|
||||
return opts;
|
||||
};
|
||||
|
||||
async getData() {
|
||||
const ctx = {};
|
||||
|
||||
ctx.item = this.item;
|
||||
ctx.system = this.item.system;
|
||||
|
||||
ctx.meta = {
|
||||
idp: this.item.uuid,
|
||||
};
|
||||
|
||||
return ctx;
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue