mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
Split into tabs
This commit is contained in:
parent
4827b337d0
commit
d385bd1a90
7 changed files with 141 additions and 5 deletions
|
|
@ -2,8 +2,6 @@ import { defaultRestOptions } from '../../config/generalConfig.mjs';
|
|||
import { ActionsField } from '../fields/actionField.mjs';
|
||||
|
||||
export default class DhHomebrew extends foundry.abstract.DataModel {
|
||||
static LOCALIZATION_PREFIXES = ['DAGGERHEART.SETTINGS.Homebrew']; // Doesn't work for some reason
|
||||
|
||||
static defineSchema() {
|
||||
const fields = foundry.data.fields;
|
||||
return {
|
||||
|
|
@ -98,6 +96,16 @@ export default class DhHomebrew extends foundry.abstract.DataModel {
|
|||
{ initial: defaultRestOptions.shortRest() }
|
||||
)
|
||||
})
|
||||
}),
|
||||
domains: new fields.SchemaField({
|
||||
id: new fields.StringField({ required: true }),
|
||||
label: new fields.StringField({ required: true, initial: '', label: 'DAGGERHEART.GENERAL.label' }),
|
||||
src: new fields.FilePathField({
|
||||
categories: ['IMAGE'],
|
||||
base64: false,
|
||||
label: 'Image'
|
||||
}),
|
||||
description: new fields.StringField({ label: 'DAGGERHEART.GENERAL.description' })
|
||||
})
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue