Do some more work on the character sheet MVP
This commit is contained in:
parent
340f80c5b9
commit
a2a72792a2
11 changed files with 138 additions and 17 deletions
|
|
@ -96,6 +96,11 @@ export class PlayerData extends foundry.abstract.DataModel {
|
|||
info: new fields.HTMLField(),
|
||||
})
|
||||
),
|
||||
respawns: new fields.SchemaField({
|
||||
r1: new fields.BooleanField(),
|
||||
r2: new fields.BooleanField(),
|
||||
r3: new fields.BooleanField(),
|
||||
}),
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -17,8 +17,7 @@ export class PlayerSheet extends ActorSheet {
|
|||
if (!this.isEditable) return;
|
||||
console.debug(`.dungeon | Adding event listeners for Actor: ${this.id}`);
|
||||
|
||||
// Modal openings
|
||||
// html.find(`button.stat-prompt`).on("click", () => {});
|
||||
// html.find(`input.sync__input`).on("blur", ($e) => {});
|
||||
};
|
||||
|
||||
getData() {
|
||||
|
|
@ -28,6 +27,10 @@ export class PlayerSheet extends ActorSheet {
|
|||
ctx.system = actor.system;
|
||||
ctx.flags = actor.flags;
|
||||
|
||||
ctx.computed = {
|
||||
syncTotal: 0
|
||||
};
|
||||
|
||||
console.groupCollapsed(`PlayerSheet.getData`);
|
||||
console.log(`ctx`, ctx);
|
||||
console.log(`actor`, actor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue