Add the startSidebarExpanded setting (closes #2)
This commit is contained in:
parent
d856f7b1c8
commit
529aa72bdf
10 changed files with 71 additions and 5 deletions
22
module/settings/startSidebarExpanded.mjs
Normal file
22
module/settings/startSidebarExpanded.mjs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import { __ID } from "../consts.mjs";
|
||||
|
||||
const key = `startSidebarExpanded`;
|
||||
|
||||
const config = {
|
||||
name: `OFT.setting.${key}.name`,
|
||||
hint: `OFT.setting.${key}.hint`,
|
||||
scope: `user`,
|
||||
type: Boolean,
|
||||
default: true,
|
||||
config: true,
|
||||
requiresReload: false,
|
||||
};
|
||||
|
||||
export const startSidebarExpanded = {
|
||||
value() {
|
||||
return game.settings.get(__ID, key);
|
||||
},
|
||||
register() {
|
||||
game.settings.register(__ID, key, config);
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue