Added attribution to environments

This commit is contained in:
WBHarry 2025-08-17 02:19:22 +02:00
parent 54da1e1872
commit c73f6202bd
26 changed files with 280 additions and 145 deletions

View file

@ -8,7 +8,7 @@ export default class DhpEnvironment extends DHBaseActorSheet {
classes: ['environment'],
position: {
width: 500,
height: 725
height: 740
},
window: {
resizable: true,
@ -49,6 +49,10 @@ export default class DhpEnvironment extends DHBaseActorSheet {
switch (partId) {
case 'header':
await this._prepareHeaderContext(context, options);
const { source, page } = this.document.system.attribution;
const attribution = [source, page ? `pg ${page}.` : null].filter(x => x).join('. ');
context.attributionLabel = attribution;
break;
case 'notes':
await this._prepareNotesContext(context, options);