added custom entry to import
parent
fc83a83de9
commit
e94219b26b
12
src/main.mjs
12
src/main.mjs
|
|
@ -12,3 +12,15 @@ Hooks.once("init", () => {
|
||||||
|
|
||||||
console.log("DSA 4.1 is ready for development!")
|
console.log("DSA 4.1 is ready for development!")
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Hooks.on("getActorDirectoryEntryContext", (menuItems) => {
|
||||||
|
menuItems.push({
|
||||||
|
name: "Import from XML",
|
||||||
|
icon: '<i class="fas fa-file"></i>',
|
||||||
|
callback: (li) => {
|
||||||
|
const actorId = li.data("document-id")
|
||||||
|
const actor = game.actors.get(actorId)
|
||||||
|
actor.import()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
Loading…
Reference in New Issue