fvtt-rolemaster-frp/module/controls.js

27 lines
619 B
JavaScript
Raw Permalink Normal View History

2024-03-28 11:40:20 +01:00
export function registerGetSceneControlButtonsHook() {
Hooks.on("getSceneControlButtons", getSceneControlButtons);
}
function getSceneControlButtons(controls) {
if (canvas == null) {
return;
}
controls.push({
name: "rmss",
title: "Rolemaster Standard System",
icon: "fas fa-r",
layer: "ControlsLayer",
tools: [
{
name: "rmmsdiceroller",
title: "Dice Roller",
icon: "fas fa-dice",
onClick: () => { return new game.rmss.applications.RMSSToolsDiceRoller().render(true); },
button: true
}
],
activeTool: "rmmsdiceroller"
});
}