Added Character-Settings

This commit is contained in:
WBHarry 2025-07-31 04:12:35 +02:00
parent 798cf8c761
commit 8555b7a044
17 changed files with 258 additions and 58 deletions

View file

@ -25,7 +25,6 @@ export default class CharacterSheet extends DHBaseActorSheet {
toggleEquipItem: CharacterSheet.#toggleEquipItem,
toggleResourceDice: CharacterSheet.#toggleResourceDice,
handleResourceDice: CharacterSheet.#handleResourceDice,
openConfig: CharacterSheet.#openConfig,
useDowntime: this.useDowntime
},
window: {
@ -717,20 +716,14 @@ export default class CharacterSheet extends DHBaseActorSheet {
});
}
/**
* Open the character config sheet.
* @type {ApplicationClickAction}
*/
static async #openConfig() {}
/**
* Open the downtime application.
* @type {ApplicationClickAction}
*/
static useDowntime(_, button) {
new game.system.api.applications.dialogs.Downtime(this.document, button.dataset.type === 'shortRest').render(
true
);
new game.system.api.applications.dialogs.Downtime(this.document, button.dataset.type === 'shortRest').render({
force: true
});
}
async _onDragStart(event) {