Add functionality to create item macros via drag & drop

This commit is contained in:
Johannes Loher 2021-03-14 19:04:28 +01:00
parent 07bcd3a58e
commit 212295069f
9 changed files with 128 additions and 9 deletions

6
src/module/helpers.ts Normal file
View file

@ -0,0 +1,6 @@
export function getCanvas(): Canvas {
if (!(canvas instanceof Canvas) || !canvas.ready) {
throw new Error(game.i18n.localize("DS4.ErrorCanvasIsNotInitialized"));
}
return canvas;
}