mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-18 16:09:03 +01:00
Use the flags setting
This commit is contained in:
parent
57fc5142b6
commit
71238935d6
6 changed files with 11 additions and 45 deletions
|
|
@ -3,8 +3,6 @@ import DhSceneConfig from '../../data/scene/SceneConfig.mjs';
|
|||
export default class DhSceneConfigSettings extends foundry.applications.sheets.SceneConfig {
|
||||
constructor(options, ...args) {
|
||||
super(options, ...args);
|
||||
// this.settings = new DhSceneConfig();
|
||||
// this.rangeMeasurementSettingsOverrideField = this.settings.initial;
|
||||
}
|
||||
|
||||
/** @override */
|
||||
|
|
@ -41,20 +39,4 @@ export default class DhSceneConfigSettings extends foundry.applications.sheets.S
|
|||
}
|
||||
};
|
||||
|
||||
/** @inheritDoc */
|
||||
async _preparePartContext(partId, context, options) {
|
||||
console.log("_preparePartContext", partId, context, options);
|
||||
context = await super._preparePartContext(partId, context, options);
|
||||
switch (partId) {
|
||||
case "dh":
|
||||
// context.settings = this.settings;
|
||||
// context.rangeMeasurementSettingsOverrideField = this.rangeMeasurementSettingsOverrideField;
|
||||
break;
|
||||
default:
|
||||
context = await super._preparePartContext(partId, context, options);
|
||||
}
|
||||
if (partId in context.tabs) context.tab = context.tabs[partId];
|
||||
return context;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue