Add a setting that disables Drag Ruler by default and only activates it once the button to add a waypoint is being pressed

This commit is contained in:
Manuel Vögele
2021-08-02 14:38:40 +02:00
parent 461e1d0818
commit 9552c25e6e
5 changed files with 80 additions and 12 deletions
+9
View File
@@ -11,6 +11,15 @@ export function registerSettings() {
default: "fresh install"
})
game.settings.register(settingsKey, "autoStartMeasurement", {
name: "drag-ruler.settings.autoStartMeasurement.name",
hint: "drag-ruler.settings.autoStartMeasurement.hint",
scope: "client",
config: true,
type: Boolean,
default: true,
});
game.settings.register(settingsKey, "swapSpacebarRightClick", {
name: "drag-ruler.settings.swapSpacebarRightClick.name",
hint: "drag-ruler.settings.swapSpacebarRightClick.hint",