Begin working on the non-MVP character sheet

This commit is contained in:
Oliver-Akins 2024-02-25 23:25:18 -07:00
parent d74416c620
commit 6d2d02b077
10 changed files with 110 additions and 5 deletions

View file

@ -1,6 +1,7 @@
import { ActorHandler } from "../documents/Actor/Handler.mjs";
import { GenericActorSheet } from "./GenericActorSheet.mjs";
import { DiceList } from "../dialogs/DiceList.mjs";
import { PopoutTextEditor } from "../dialogs/PopoutTextEditor.mjs";
export class MobSheet extends GenericActorSheet {
static get defaultOptions() {
@ -28,6 +29,14 @@ export class MobSheet extends GenericActorSheet {
let d = new DiceList(this.actor);
d.render(true);
});
html.find(`[data-text-editor]`)
.on(`click`, () => {
let editor = new PopoutTextEditor(
this.actor,
`system.description`
);
editor.render(true);
});
};
async getData() {