Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to not show image hover for imprecise tokens #69

Open
dineshm72 opened this issue Oct 8, 2024 · 0 comments
Open

Add option to not show image hover for imprecise tokens #69

dineshm72 opened this issue Oct 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dineshm72
Copy link

dineshm72 commented Oct 8, 2024

At some point in v11, foundry began to support the concept of imprecise tokens, at least in 5e, possibly in core.

Essentially, these are tokens that are not visible (they may be in darkness, may be invisible, etc.) but may be detected by other "imprecise" senses (hearing, tremorsense).

In game these tokens can be configured to display differently - common options are the mystery man, or (when using Vision 5e) a swirly soundwave image (see below). The intention is that you know something is there, but you cannot identify it, friend or foe. The Token Disposition colorization is also hidden, along with any nameplates or health bar indicators.
image
image
image

Unfortunately, Image Hover does not (yet!) respect this setting, and will gladly show the actor image in the designated location, kinda ruining this imprecision.
image

So the request is to add in handling for this case to (optionally?) prevent the image hover from working for these tokens. Or perhaps only preventing it for players? It may be useful to see for GMs I suppose.

Eber (foundry dev and author of Vision 5e) suggested that you need to check the token properties using something along these lines:

if (this.object.detectionLevel === Token.DETECTION_LEVELS.IMPRECISE ) ...

Thanks for considering!

@Eriku33 Eriku33 added the bug Something isn't working label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants