mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
50 lines
1.7 KiB
JavaScript
50 lines
1.7 KiB
JavaScript
import DHBaseActorSettings from '../sheets/api/actor-setting.mjs';
|
|
|
|
/**@typedef {import('@client/applications/_types.mjs').ApplicationClickAction} ApplicationClickAction */
|
|
|
|
export default class DHCharacterSettings extends DHBaseActorSettings {
|
|
/**@inheritdoc */
|
|
static DEFAULT_OPTIONS = {
|
|
classes: ['character-settings'],
|
|
position: { width: 455, height: 'auto' },
|
|
actions: {},
|
|
dragDrop: [
|
|
{ dragSelector: null, dropSelector: '.tab.features' },
|
|
{ dragSelector: '.feature-item', dropSelector: null }
|
|
]
|
|
};
|
|
|
|
/**@override */
|
|
static PARTS = {
|
|
header: {
|
|
id: 'header',
|
|
template: 'systems/daggerheart/templates/sheets-settings/adversary-settings/header.hbs'
|
|
},
|
|
tabs: { template: 'systems/daggerheart/templates/sheets/global/tabs/tab-navigation.hbs' },
|
|
details: {
|
|
id: 'details',
|
|
template: 'systems/daggerheart/templates/sheets-settings/adversary-settings/details.hbs'
|
|
},
|
|
attack: {
|
|
id: 'attack',
|
|
template: 'systems/daggerheart/templates/sheets-settings/adversary-settings/attack.hbs'
|
|
},
|
|
experiences: {
|
|
id: 'experiences',
|
|
template: 'systems/daggerheart/templates/sheets-settings/adversary-settings/experiences.hbs'
|
|
},
|
|
features: {
|
|
id: 'features',
|
|
template: 'systems/daggerheart/templates/sheets-settings/adversary-settings/features.hbs'
|
|
}
|
|
};
|
|
|
|
/** @override */
|
|
static TABS = {
|
|
primary: {
|
|
tabs: [{ id: 'details' }, { id: 'attack' }, { id: 'experiences' }, { id: 'features' }],
|
|
initial: 'details',
|
|
labelPrefix: 'DAGGERHEART.GENERAL.Tabs'
|
|
}
|
|
};
|
|
}
|