#Title Right Click on ActorItem Artwork
1 messages · Page 1 of 1 (latest)
A world script for you ```js
Hooks.on(renderJournalSheet, (journal, html) => {
html.find('.entity-link').contextmenu(function(e){
if (e.currentTarget.dataset.type === "Actor")
new ImagePopout(game.actors.get(e.currentTarget.dataset.id).img, {title: $(this).text(), shareable: true}).render(true)
if (e.currentTarget.dataset.type === "Item")
new ImagePopout(game.items.get(e.currentTarget.dataset.id).img, {title: $(this).text(), shareable: true}).render(true)
});
});
Awesome thanks, would be awesome to get this added to Core.
How do you set this script to auto-run on World Load? Or do I have to create a macro and run it manually?
Foundry VTT Community Wiki