Skip to content

CB: Provide option to entirely lock down the filters #5444

Description

@krbz999

Use case:

Prompt a user to pick a huge dragon, but I don't want them to be able to adjust the filters to toggle "beast" for example.

Currently one has to iterate through all the options and set them to -1. It would be nice to be able to just blanket-lock them all.

await dnd5e.applications.CompendiumBrowser.select({
    tab: "actors",
    mode: dnd5e.applications.CompendiumBrowser.MODES.ADVANCED,
    selection: { min: 1, max: 3 },
    filters: {
        locked: {
            types: new Set(["npc"]),
            additional: {
                cr: { min: 1, max: 30 },
                movement: { walk: 1 },
                size: { huge: 1 },
                type: { dragon: 1 },
            },
        },
    },
});

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions