Add setting migration

This commit is contained in:
Manuel Vögele
2021-02-18 00:38:55 +01:00
parent b84cdfd7c1
commit 8110a1b78b
3 changed files with 36 additions and 0 deletions
+7
View File
@@ -4,6 +4,13 @@ import {SpeedProvider} from "./speed_provider.js"
export const settingsKey = "drag-ruler";
export function registerSettings() {
game.settings.register(settingsKey, "dataVersion", {
scope: "world",
config: false,
type: String,
default: "fresh install"
})
game.settings.register(settingsKey, "swapSpacebarRightClick", {
name: "drag-ruler.settings.swapSpacebarRightClick.name",
hint: "drag-ruler.settings.swapSpacebarRightClick.hint",