mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-12 03:31:07 +01:00
* Look for rangeMeasurementSettingsOverride on the scene to switch off DH global range measurement settings. * Part progress on adding config tab to scene config * Hard coded template; no value applied/saved * Flag fix * Use the flags setting * Clean up * Remove import * Better initialisation of PARTS and TABS * Fix localisation --------- Co-authored-by: Chris Ryan <chrisr@blackhole> Co-authored-by: WBHarry <williambjrklund@gmail.com>
25 lines
No EOL
614 B
JavaScript
25 lines
No EOL
614 B
JavaScript
export default class DhSceneConfigSettings extends foundry.applications.sheets.SceneConfig {
|
|
constructor(options, ...args) {
|
|
super(options, ...args);
|
|
}
|
|
|
|
static buildParts() {
|
|
const { footer, ...parts } = super.PARTS;
|
|
const tmpParts = {
|
|
...parts,
|
|
dh: { template: "systems/daggerheart/templates/scene/dh-config.hbs" },
|
|
footer
|
|
}
|
|
return tmpParts;
|
|
}
|
|
|
|
static PARTS = DhSceneConfigSettings.buildParts();
|
|
|
|
static buildTabs() {
|
|
super.TABS.sheet.tabs.push({ id: "dh", icon: "fa-solid" });
|
|
return super.TABS;
|
|
}
|
|
|
|
static TABS = DhSceneConfigSettings.buildTabs();
|
|
|
|
} |