2024-07-26 14:15:51 +02:00
|
|
|
|
|
|
|
export function registerGetSceneControlButtonsHook() {
|
|
|
|
Hooks.on("getSceneControlButtons", getSceneControlButtons);
|
|
|
|
}
|
|
|
|
|
|
|
|
function getSceneControlButtons(controls) {
|
|
|
|
if (canvas == null) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
controls.push({
|
|
|
|
name: "fvtt-rolemaster-frp",
|
|
|
|
title: "Rolemaster FRP System",
|
|
|
|
icon: "fas fa-r",
|
|
|
|
layer: "ControlsLayer",
|
|
|
|
tools: [
|
|
|
|
{
|
2024-08-15 22:25:07 +02:00
|
|
|
name: "rmfrpdiceroller",
|
2024-07-26 14:15:51 +02:00
|
|
|
title: "Dice Roller",
|
|
|
|
icon: "fas fa-dice",
|
2024-08-15 22:25:07 +02:00
|
|
|
onClick: () => { return new game.rmfrp.applications.RMSSToolsDiceRoller().render(true); },
|
2024-07-26 14:15:51 +02:00
|
|
|
button: true
|
|
|
|
}
|
|
|
|
],
|
2024-08-15 22:25:07 +02:00
|
|
|
activeTool: "rmfrpdiceroller"
|
2024-07-26 14:15:51 +02:00
|
|
|
});
|
|
|
|
}
|