mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-22 07:23:37 +02:00
Stuff
This commit is contained in:
parent
1fea8438ba
commit
7af3f07a26
14 changed files with 260 additions and 16 deletions
|
|
@ -99,7 +99,8 @@ export default function DHApplicationMixin(Base) {
|
|||
toggleExtended: DHSheetV2.#toggleExtended,
|
||||
addNewItem: DHSheetV2.#addNewItem,
|
||||
browseItem: DHSheetV2.#browseItem,
|
||||
editAttribution: DHSheetV2.#editAttribution
|
||||
editAttribution: DHSheetV2.#editAttribution,
|
||||
configureLevelUpOptions: DHSheetV2.#configureLevelUpOptions,
|
||||
},
|
||||
contextMenus: [
|
||||
{
|
||||
|
|
@ -119,6 +120,16 @@ export default function DHApplicationMixin(Base) {
|
|||
}
|
||||
}
|
||||
],
|
||||
window: {
|
||||
controls: [
|
||||
{
|
||||
icon: 'fa-solid fa-angles-up fa-fw',
|
||||
label: 'DAGGERHEART.UI.Tooltip.configureLevelupOptions',
|
||||
action: 'configureLevelUpOptions',
|
||||
visible: DHSheetV2.#hasLevelUpOptions,
|
||||
}
|
||||
],
|
||||
},
|
||||
dragDrop: [{ dragSelector: '.inventory-item[data-type="effect"]', dropSelector: null }],
|
||||
tagifyConfigs: []
|
||||
};
|
||||
|
|
@ -142,6 +153,10 @@ export default function DHApplicationMixin(Base) {
|
|||
return frame;
|
||||
}
|
||||
|
||||
static #hasLevelUpOptions() {
|
||||
return this.document.system.metadata.hasLevelUpOptions;
|
||||
};
|
||||
|
||||
/**
|
||||
* Refresh the custom parts of the application frame
|
||||
*/
|
||||
|
|
@ -708,6 +723,10 @@ export default function DHApplicationMixin(Base) {
|
|||
new game.system.api.applications.dialogs.AttributionDialog(this.document).render({ force: true });
|
||||
}
|
||||
|
||||
static async #configureLevelUpOptions() {
|
||||
new game.system.api.applications.dialogs.LevelupOptionsDialog(this.document).render({ force: true });
|
||||
}
|
||||
|
||||
/**
|
||||
* Create an embedded document.
|
||||
* @type {ApplicationClickAction}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue