Code Monkey home page Code Monkey logo

foundryvtt-token-tooltips's Introduction

Illandril's Token Tooltips

Illandril Author License
Version Open Issues Latest Release Download Count
Foundry Minimum Version Foundry Verified Version Forge Installs

This is a module for Foundry Virtual Tabletop that adds tooltips for tokens for any system. Some, but not all, systems have some values pre-configured for the tooltip, but custom tooltip values can be configured for any system. The DnD5e system has the most built-in support, but other modules (including Pathfinder 1 and 2, D&D 3.5, and more) have some values configured to show out-of-the-box.

The tooltips for DnD5e include HP, AC, Movement Speeds, Passive Perception, Passive Investigation, Passive Insight, Resources, Spell Slots, Feat Usages, and Item Uses and Quantity. All values can be hidden if you do not want them to show.

Tooltips are shown for all tokens for GMs, and visibility is configurable for players.

Screenshot showing tooltips for Olive

For the custom tooltip values, the icon name is the name of the Font Awesome icon you want to show. You can search for icons on the Font Awesome website. Note that not all Font Awesome icons are available (FoundryVTT itself is in control over which icons are available, not this module - this module is just using the icons that are shipped with FoundryVTT).

Credits

Thanks to tonishi for the Japanese localization.

foundryvtt-token-tooltips's People

Contributors

brothersharper avatar dependabot[bot] avatar illandril avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

foundryvtt-token-tooltips's Issues

Add a way to hide certain items from the tooltip

If a character has a lot of consumables, especially if most of them would be rarely used, the tooltip can be unwieldy. There should be a way to limit what appears in the tooltip.

Potential short-term solution: show only equipped items.

[FEATURE] Render HTML for PbtA "LongText" fields in the tooltip

Is your feature request related to a problem? Please describe.
When displaying rich text from a character sheet, sometimes it has HTML in it due to the underlying game system, which makes the text difficult to parse on the tooltip as seen below:

Describe the solution you'd like
I'd like for the tooltips to be able to display the text with the HTML stripped away.

Describe alternatives you've considered
I've considered allowing the data key value to run functions or evaluate expressions, which would allow users to add some conditional logic to the tooltips and manipulate the actor data as well and strip out characters from strings as well.
What system(s) do you want this feature to work with?
I'd like this feature to work with the PbtA game system (v0.3.0-beta1).

What other modules do you use that you want to ensure work well with this feature?
I'm currently also using Token Tooltips Alt as it allows me to display the result of an evaluated expression instead of just a specific data key as well as display tooltips for all visible tokens simultaneously. This allows me to only display some values if certain parameters are true on the character sheet. However, this module only supports icons to mark each value displayed in a tooltip.

Additional context
image

Tooltip appears when Foundry first loads

When the mouse first moves after a scene is loaded, one character will often act as if the mouse was hovering over them, and therefore show the tooltip (which will not hide until you mouse over another character).

This is really a bug in Foundry itself, not this module... but it would be good if this module could implement a workaround for that issue to avoid needing to wait for a Foundry fix.

[FEATURE] Block Tooltips when holding Alt

Is your feature request related to a problem? Please describe.
At the moment, whenever you hold Alt to highlight all tokens, it shows a Tooltip on your most recently selected token. This causes some graphical strangeness when using Hotkeys involving Alt or when trying to highlight tokens around your selected one.

Describe the solution you'd like
I would like a checkbox to block the appearance of the tooltip whenever Alt is held.

Describe alternatives you've considered
Other alternatives is to simply live with it. I understand that some GMs may prefer this behavior as well.

What system(s) do you want this feature to work with?
dnd5e

What other modules do you use that you want to ensure work well with this feature?
Smart Target (uses Alt+Click to target tokens).

Additional context
Screenshot

PF1E Tooltip doesn't appear with Loot sheet selected

When I have the character sheet set to Nonplayer Character (NPC) or NPC Lite, the tooltip appears normally.
image

When I have the character sheet set to Loot Sheet, the tooptip disappears, showing only a white dot.
image

These are my selections when I change the character sheet. The stats are saved with the actor, each sheet showing only certain amount of data in a particular graphic.
image

[FEATURE] Custom Tooltip values in the form X / Y

Hi, and great work with this module!

I'm trying to create a custom tooltip for Pathfinder 2 that does the variant Stamina rule.
Basically, I want it to appear like hit points with "[current stamina] / [max stamina]". I know the value and max that I need is data.attributes.sp.value and data.attributes.sp.max but I don't know how to fill out the 'data key' to make that happen. Is this feature implemented already and if so how do I do it?

Thanks!

image

[FEATURE] Show Tooltips for GMs only

Is your feature request related to a problem? Please describe.
I want to use the tooltip as a GM without my players ever having to see it. I cannot find any combination of settings that fully disables/hides it from players.

Describe the solution you'd like
I would like a way to disable it for players. Preferably an option I can set as the DM to simply hide all functionality from all non-DMs, like your Token Quick Actions mod which has a Minimum Role for Quick Actions configuration. But I'd settle for a setting configurable per user.

Describe alternatives you've considered
I've tried setting the permissions to exclude players from seeing it, but I can't.

What system(s) do you want this feature to work with?
DND5e

What other modules do you use that you want to ensure work well with this feature?
Illandril's Token Quick Actions

[FEATURE]

I would really appreciate the ability to remove entirely or at least edit your base line stats (health, AC, Saves, ETC) esp to put in my custom ones ! Adding new bits or clarifying them with custom pieces adds up fast! Great tool and super handy -- THANKS in advance!

[Foundry 0.7.x] Remove hoverX spam workaround

The fix for #6 was a workaround for a FoundryVTT issue. This issue has reportedly been fixed in Foundry 0.7.2, so after 0.7.x is stable, and people have had time to upgrade so that 0.6.x support isn't necessary anymore, this workaround should be removed to minimize the risk of future incompatibility (or hidden behind a Foundry version check, if it makes sense to keep 0.6.x support for longer).

Show max uses for charges

A max uses count could be useful for some items.
This is at least true for items that recharge on Short Rest, Long Rest, or Day.

Items that recharge only N charges (or NdX charges) per day would also benefit from showing a max.
Showing the max would be less beneficial for items that never gain charges back.
I'm not sure yet if there is a good way to distinguish between these two categories, and if not which way would be best (show a max for all charges, or only for per SR/LR/Day items). It's possible that a "partial recharge per SR/LR/Day" setup will be possible at some point (perhaps worth opening an issue for the DnD5E system or writing a module to do this).

Request: Allow for math in the Datakey section.

I'd like to show "Will DC", "Reflex DC" and "Fort DC" as a pop up in PF2E.

Unfortunately, that number is not stored as a data key. Its auto calculated based on off of, for example, "data.saves.reflex.totalModifier" +10.

So if there was a way to do something like
(data.saves.reflex.totalModifier + 10)
OR
{mod=<data.saves.reflex.totalModifier>; mod+10 }

that would be very helpful. Thank you.

[BUG] Make entity permissions more clear ("None" + GM toggle)

Describe the bug
The "show to everyone" permission setting says "None", which can imply to someone that it will show to no one (as opposed to everyone).
The GM toggle is also not very clear on what it does.

What steps did you take before experiencing the problem?

  1. Go to edit the permissions for tooltips

What did you expect to happen?
It is very clear what every setting does

What happened instead?
It's easy to misunderstand "None" and the GM toggle.

[BUG] localizing error

Describe the bug
Localizing seems not working properly on me...

What steps did you take before experiencing the problem?
Steps to reproduce the behavior: Nothing. It happened after the update.

Screenshots
image

Foundry Versions

  • Foundry Version: 0.8.9
  • System Name and Version: Tested on Kamigakari system and Coc unofficial.
  • Browser Name and Version: Chrome

What other modules did you have active when experiencing this issue (include both names and versions)?
Nothing. I tried restarting FVTT. No modules on.

Move values up & down

I'm running Foundry 9.255 and using the last version of tooltips. I'm trying to sort out my various values using the up and down arrows to the right of them. They shift but do not move up or down. I'll try to put a screenshot here.

Tooltiperror

Describe the bug
A clear and concise description of what the bug is.

What steps did you take before experiencing the problem?
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

What did you expect to happen?
A clear and concise description of what you expected to happen.

What happened instead?
A clear and concise description of what happened that you did not expect to happen.
Tooltiperror

Screenshots
If applicable, add screenshots to help explain your problem.

Foundry Versions

  • Version of this module:
  • Foundry Version:
  • System Name and Version:
  • Browser Name and Version:

What other modules did you have active when experiencing this issue (include both names and versions)?
Add the name and version of any other modules you had active when you experienced this issue. If you are able, please try to reproduce the issue with the least number of other modules active as possible, to help narrow down the specific cause of the problem in case the problem is caused by a conflict between modules.

Additional context
Add any other context about the problem here (ex. any settings for Foundry, the System, and/or Modules that you think may be related).

(Suggestion) Option to Swap Tooltip to Left side of Token

Possible to have an option to swap the hovering tool-tip to the left side of tokens by default?
Mainly based on personal preference, as it would compliment several isometric modules.
Love this module as do my players, thanks for your work

Add support for other systems

Add in support for other modules (both native support for some values in some popular systems, and a generic "any value the GM wants" setup).

data key "img" doesn't work

Hi!! I would like to show the avatar image in the tooltip, but the data key "img" in the "custom tooltip values" shows only the img path "systems/ecc... .jpg".

Is there a way to show the avatar instead? Thanks a lot

Diego

Console log is hard to read

image

I try to check my log on startup every time I update a mod for errors. This is pretty minor, but it's pretty hard to read the title here when using a dark theme.

[BUG] Resistances and weaknesses showing as "undefined" in PF2E

Resistances and Weaknesses for the PF2E character sheet aren't displaying properly. The names of the resistances/weaknesses show up as "undefined". I'm on Foundry 0.8.9 and PF2E 2.18.1.8726. Also, I'm using Chrome Version 95.0.4638.69 (Official Build) (64-bit).
Weaknesses
.

Configuration option's help text are mixed up

Open Global Settings > Modules > Illandril's Token Tooltips
The help text of the config "Tooltip Visibility" shows the text you would expect for "Tooltip Rows"
And "Tooltip Rows" has no help text at all, it shows the translation key.

image

Suggestion: Allow static items to be rearranged

Suggestion: Allow the static items to be rearranged with the custom items. Since I'm using PF1, I like having the 1st column with HP, AC, touch AC, flat-footed AC, and CMD, the 2nd column being saving throws and Perception. Lastly I wanted to have Speed last.

Further, I wasn't able to add the speed as a custom item in the same manner as how the static speed lists any speed types if they exist.

No option for enemies?

I want my players to see this for all tokens that are visible to them. None of the current options do this (for me).

Add option to show tooltip only on PCs

I use the Lite character sheets for NPCs, they don't have accurate information that is presented in the tooltip. Possible to add an option that shows the tooltips only for PCs? This would allow the GM to still the PCs tooltips but they wouldn't appear for NPCs.

Update compatibility for 0.6.6

FoundryVTT 0.6.6 is now stable - test and confirm compatibility, then update module.json if everything works in 0.6.6

Request: Show resources in tooltip

Would it be possible to display Resources in the tooltip? It'd be useful for the Battle Master's superiority die and the Monk's ki points which don't have limited charges for individual features.

Excellent work on the module by the way, it's been really helpful!

Add option to show tooltips to players for more or fewer tokens

Noticed on Discord:

Rafaxexe 08/27/2020
Hi! I'm DMing a game and we just moved to foundry, could someone please point me in the right direction to edit something in a module?

The module is Illandril's Token Tooltips and I would like to make people unable to see ally's tooltips, as in editing the module's code somehow, since it has no way to config anything.

Add attributes, saves, and modifiers

maddieb#1963 on Discord asked...

I'm playing around with Illandril's Token Tooltips and setting up some custom rows. I'm adding new rows for various character attributes (eg data.abilities.str) I'd love to have it show the attribute's base value, mod, and save all in one row (eg STR 18,+4,+6) does anyone know of a way to do that? The best I can think of is playing with the number of rows and order of the fields so three individual rows for each value line up in a row but that's less than ideal setup, and takes up more space than I'd like.
Does anyone know if this is possible?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.