Finished token implementation

This commit is contained in:
WBHarry 2025-12-20 17:14:19 +01:00
parent 3b237a223f
commit 809255ba79
7 changed files with 466 additions and 34 deletions

View file

@ -80,9 +80,9 @@ export default class BaseDataActor extends foundry.abstract.TypeDataModel {
if (this.metadata.usesSize)
schema.size = new fields.StringField({
required: true,
nullable: false,
nullable: true,
choices: CONFIG.DH.ACTOR.tokenSize,
initial: CONFIG.DH.ACTOR.tokenSize.medium.id
initial: null
});
return schema;
}

View file

@ -43,12 +43,12 @@ export default class DhHomebrew extends foundry.abstract.DataModel {
tokenSizes: new fields.SchemaField({
tiny: new fields.NumberField({
integer: false,
initial: 0.4,
initial: 0.5,
label: 'DAGGERHEART.CONFIG.TokenSize.tiny'
}),
small: new fields.NumberField({
integer: false,
initial: 0.6,
initial: 0.8,
label: 'DAGGERHEART.CONFIG.TokenSize.small'
}),
medium: new fields.NumberField({