Get the module foundations and the Artist app created
This commit is contained in:
parent
8744b6c562
commit
ffa2162fbd
20 changed files with 590 additions and 0 deletions
14
module/utils/dialogs.mjs
Normal file
14
module/utils/dialogs.mjs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { filePath } from "../consts.mjs";
|
||||
|
||||
const { DialogV2 } = foundry.applications.api;
|
||||
const { renderTemplate } = foundry.applications.handlebars;
|
||||
|
||||
export async function promptViaTemplate(title, template, context = {}) {
|
||||
const content = await renderTemplate(filePath(template), context);
|
||||
return DialogV2.input({
|
||||
window: {
|
||||
title,
|
||||
},
|
||||
content,
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue