mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-11 19:25:21 +01:00
* Added the select and handliing * Fixed so tokenPreview works with tokenSize * Correction for prototypeToken * Extracted common logic to token-config-mixin.mjs * Update templates/sheets-settings/token-config/appearance.hbs Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com> --------- Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
11 lines
560 B
JavaScript
11 lines
560 B
JavaScript
import DHTokenConfigMixin from './token-config-mixin.mjs';
|
|
import { getActorSizeFromForm } from './token-config-mixin.mjs';
|
|
|
|
export default class DhTokenConfig extends DHTokenConfigMixin(foundry.applications.sheets.TokenConfig) {
|
|
async _processSubmitData(event, form, submitData, options) {
|
|
const changedTokenSizeValue = getActorSizeFromForm(this.element, this.actor);
|
|
if (changedTokenSizeValue) this.token.actor.update({ 'system.size': changedTokenSizeValue });
|
|
|
|
super._processSubmitData(event, form, submitData, options);
|
|
}
|
|
}
|