Finishing the Sync sheet and some other stuffs
This commit is contained in:
parent
a28718b115
commit
554fae5a93
26 changed files with 494 additions and 105 deletions
32
module/sheets/SyncVariations/AbstractSyncSheet.mjs
Normal file
32
module/sheets/SyncVariations/AbstractSyncSheet.mjs
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
import { GenericSheet } from "../GenericSheet.mjs";
|
||||
|
||||
export class AbstractSyncSheet extends GenericSheet {
|
||||
static get defaultOptions() {
|
||||
let opts = mergeObject(
|
||||
super.defaultOptions,
|
||||
{
|
||||
width: 200,
|
||||
height: 200,
|
||||
}
|
||||
);
|
||||
opts.classes.push(
|
||||
`dotdungeon`,
|
||||
`dotdungeon--sync-sheet`
|
||||
);
|
||||
return opts;
|
||||
};
|
||||
|
||||
getData() {
|
||||
const ctx = super.getData();
|
||||
const actor = this.actor.toObject(false);
|
||||
|
||||
ctx.system = actor.system;
|
||||
ctx.flags = actor.flags;
|
||||
|
||||
console.groupCollapsed(`SyncSheet.getData`);
|
||||
console.log(`ctx`, ctx);
|
||||
console.log(`actor`, actor);
|
||||
console.groupEnd();
|
||||
return ctx;
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue