caewok / fvtt-walled-templates

Foundry VTT templates that interact with walls
MIT License
9 stars 4 forks source link

Allow template hiding unless within token shape #84

Closed caewok closed 7 months ago

caewok commented 8 months ago

Need to modify the hitArea. Something like:

t = canvas.templates.placeables[0]
t.off("pointerenter").on("pointerenter", event => console.log("Entered!"))
t.eventMode = "static"
t.hitArea = t.shape; // Need to make sure this is a valid shape at the actual template location.

Note: Hit area is relative to the anchor. See https://pixijs.com/examples/events/custom-hitarea

caewok commented 7 months ago

Added in v0.7.3.