Make the Delve Tour app optional (because I got annoyed with it popping up in the middle of the window)
This commit is contained in:
parent
f90ab0443f
commit
46a235b603
3 changed files with 16 additions and 1 deletions
|
|
@ -26,6 +26,7 @@ import { registerCustomComponents } from "../Apps/elements/_index.mjs";
|
|||
import { registerDevSettings } from "../settings/devSettings.mjs";
|
||||
import { registerMetaSettings } from "../settings/metaSettings.mjs";
|
||||
import { registerUserSettings } from "../settings/userSettings.mjs";
|
||||
import { registerWorldSettings } from "../settings/worldSettings.mjs";
|
||||
|
||||
Hooks.once(`init`, () => {
|
||||
Logger.log(`Initializing`);
|
||||
|
|
@ -36,6 +37,7 @@ Hooks.once(`init`, () => {
|
|||
registerMetaSettings();
|
||||
registerDevSettings();
|
||||
registerUserSettings();
|
||||
registerWorldSettings();
|
||||
// #endregion
|
||||
|
||||
// #region Datamodels
|
||||
|
|
|
|||
|
|
@ -18,5 +18,7 @@ Hooks.once(`ready`, () => {
|
|||
if (game.paused) { game.togglePause() };
|
||||
};
|
||||
|
||||
if (game.settings.get(`ripcrypt`, `showDelveTour`)) {
|
||||
ui.crypt.render({ force: true });
|
||||
};
|
||||
});
|
||||
|
|
|
|||
11
module/settings/worldSettings.mjs
Normal file
11
module/settings/worldSettings.mjs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
export function registerWorldSettings() {
|
||||
|
||||
game.settings.register(`ripcrypt`, `showDelveTour`, {
|
||||
name: `Delve Tour Popup`,
|
||||
scope: `world`,
|
||||
type: Boolean,
|
||||
config: true,
|
||||
default: true,
|
||||
requiresReload: false,
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue