Files
vermine2047/module/system/settings.mjs
T
François-Xavier Guillois 5ddd9db9b3 first data modeling
2023-04-20 15:12:05 +02:00

29 lines
860 B
JavaScript

export const registerSettings = function () {
game.settings.register("totem", "game-level", {
name: game.i18n.localize("TOTEM.WorldSettings.GameLevel.Name"),
hint: game.i18n.localize("TOTEM.WorldSettings.GameLevel.Hint"),
scope: "system",
config: true,
type: String,
choices: {
"e": "Totem",
"c": "Céphale",
"b": "Bohème",
"a": "Amertume"
},
default: 'e',
onChange: value => {
console.log(value);
}
});
game.settings.register("totem", "granting_cephalie", {
name: game.i18n.localize("TOTEM.WorldSettings.GrantingCephales.Label"),
hint: game.i18n.localize("TOTEM.WorldSettings.GrantingCephales.Description"),
scope: "system",
config: true,
type: Boolean,
default: !1
})
}