Register actor portrait menu commands which Tidy 5e can render on the sheet when appropriate.
actor portrait menu commands for Tidy 5e to render
Hooks.once("tidy5e-sheet.ready", (api) => {
api.config.actorPortrait.registerMenuCommands([
{
label: "Test",
iconClass: "fa-solid fa-flask",
tooltip: "Click for test result",
enabled: (params) => params.actor.type !== "vehicle",
execute: (params) => {
console.log(params);
ui.notifications.info(
"Hello, Test Portrait Menu Command for " + params.actor.name
);
},
},
]);
});
API functionality related to Actor portraits.