mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
Part progress on adding config tab to scene config
This commit is contained in:
parent
fcf35ac17e
commit
55edd6b3ac
7 changed files with 49 additions and 1 deletions
1
module/applications/scene/_module.mjs
Normal file
1
module/applications/scene/_module.mjs
Normal file
|
|
@ -0,0 +1 @@
|
|||
export { default as DhSceneConfig } from './sceneConfig.mjs';
|
||||
19
module/applications/scene/sceneConfig.mjs
Normal file
19
module/applications/scene/sceneConfig.mjs
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
export default class DhSceneConfig extends foundry.applications.sheets.SceneConfig {
|
||||
|
||||
/** @inheritDoc */
|
||||
async _preparePartContext(partId, context, options) {
|
||||
console.log("_preparePartContext", partId, context, options);
|
||||
context = await super._preparePartContext(partId, context, options);
|
||||
switch ( partId ) {
|
||||
case "dh":
|
||||
context.fields.rangeMeasurementSettingsOverride = "Override Global Range Measurement Settings";
|
||||
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