Refactoring renderCompendium

Added "hide disabled source" option
This commit is contained in:
Vlyan
2025-03-18 13:45:19 +01:00
parent 47799feb63
commit a1103f847a
8 changed files with 167 additions and 184 deletions

View File

@@ -98,6 +98,15 @@ export const RegisterSettings = function () {
scope: "world",
});
game.settings.register(CONFIG.l5r5e.namespace, "compendium-hide-disabled-sources", {
name: "SETTINGS.Compendium.HideDisabledSources.Title",
hint: "SETTINGS.Compendium.HideDisabledSources.Hint",
type: Boolean,
default: true,
config: true,
scope: "world",
});
/* ------------------------------------ */
/* Client preferences */
/* ------------------------------------ */