I see - perhaps something that be done through a similar endpoint to: ```js game.modules.get("module

I see - perhaps something that be done through a similar endpoint to:
game.modules.get("module_name").api.registerFilter({
id: "my_module_name",
label: "My custom item filter",
type: "item",
filters: [
{
label: "Filter 1", criteria: { path: "system.quantity", value: 1, operator: "==" }
}
]
})
game.modules.get("module_name").api.registerFilter({
id: "my_module_name",
label: "My custom item filter",
type: "item",
filters: [
{
label: "Filter 1", criteria: { path: "system.quantity", value: 1, operator: "==" }
}
]
})
The above example would add a single button under a title called "My custom item filter" to item compendia that when pressed would only show items with a quantity property of exactly 1
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?