Register some settings for the system, including some developer-only settings

This commit is contained in:
Oliver-Akins 2023-12-18 23:18:05 -07:00
parent a2a72792a2
commit 2026785b09
6 changed files with 43 additions and 0 deletions

View file

@ -18,8 +18,15 @@ import * as hbs from "./handlebars.mjs";
import "./hooks/hotReload.mjs";
// Misc Imports
import loadSettings from "./settings/index.mjs";
Hooks.once(`init`, () => {
console.debug(`.dungeon | Initializing`);
loadSettings();
game.boilerplate = {
PlayerActor,
AspectItem,

View file

@ -0,0 +1,11 @@
export default function() {
game.settings.register(`dotdungeon`, `showAvatarOnSheet`, {
name: `dotdungeon.settings.showAvatarOnSheet.name`,
hint: `dotdungeon.settings.showAvatarOnSheet.description`,
scope: `client`,
type: Boolean,
config: true,
default: true,
requiresReload: false,
});
};

View file

@ -0,0 +1,9 @@
export default function() {
game.settings.register(`dotdungeon`, `devMode`, {
scope: `client`,
type: Boolean,
config: false,
default: false,
requiresReload: false,
});
};

View file

@ -0,0 +1,7 @@
import registerClientSettings from "./client_settings.mjs";
import registerDevSettings from "./dev_settings.mjs";
export default function registerSettings() {
registerClientSettings();
registerDevSettings();
};