diff --git a/src/main.js b/src/main.js index 2277bc3..ac360fd 100644 --- a/src/main.js +++ b/src/main.js @@ -35,11 +35,20 @@ export class AscAssetManager { } } -Hooks.on('init', ()=>CONFIG.debug.hooks = true) +Hooks.on('init', ()=>{ + + } +) Hooks.on("ready", function() { - AscAssetManager.log(false, "Deno nodule reody") registerSettings(AscAssetManager); + const DEBUG = game.settings.get(AscAssetManager.ID, "enableDebugMode") + if (DEBUG) { + AscAssetManager.log(false, "Debug Mode Enabled") + CONFIG.debug.hooks = true + } + AscAssetManager.log(false, "Deno nodule reody") + }); Hooks.on("ascAssetManager.renderUploadChoose", (data={}) => { diff --git a/src/module.json b/src/module.json index 1f48002..3219f65 100644 --- a/src/module.json +++ b/src/module.json @@ -1,10 +1,12 @@ { "id": "asc-asset-manager", - "title": "asc-asset-manager", - "version": "0.1.0", + "title": "Asset Manager", + "version": "0.1.1", + "download": "https://gitea.ascorrea.com/asc/asc-asset-manager/releases/download/0.1.1/module.zip", + "manifest": "https://gitea.ascorrea.com/asc/asc-asset-manager/releases/download/latest/module.json", "compatibility": { "minimum": "12", - "verified": "12" + "verified": "12.331" }, "authors": [ { diff --git a/src/settings.js b/src/settings.js index d8d9533..76c3561 100644 --- a/src/settings.js +++ b/src/settings.js @@ -3,15 +3,16 @@ export function registerSettings(AscAssetManager) { const ID = AscAssetManager.ID //Ability // Register the "enableFeature" setting - game.settings.register(ID, "enableFeature", { - name: "Enable Feature", - hint: "Enable or disable the special feature of this module.", + game.settings.register(ID, "enableDebugMode", { + name: "Enable Debug Mode", + hint: "Enable or disable debug mode for this module. When enabled, additional debugging information will be logged to the console.", scope: "world", config: true, type: Boolean, - default: true, + requiresReload: true, + default: false, onChange: value => { - console.log(`Enable Feature setting changed to: ${value}`); + console.log(`Debug Mode setting changed to: ${value}`); } }); @@ -29,24 +30,6 @@ export function registerSettings(AscAssetManager) { } }); - // Register a dropdown setting - game.settings.register(ID, "theme", { - name: "Select Theme", - hint: "Choose a theme for the module.", - scope: "world", - config: true, - type: String, - choices: { - light: "Light Theme", - dark: "Dark Theme", - system: "Use System Default" - }, - default: "system", - onChange: value => { - console.log(`Theme changed to: ${value}`); - } - }); - game.settings.registerMenu(ID, "instructions", { name: "Add macro to hotbar", label: "Get Macro",