bmarian / token-tooltip-alt

A module that adds a tooltip next to the currently hovered token to show some useful information for players and DMs.
MIT License
9 stars 15 forks source link

[FEATURE REQUEST] Conditional display of items #45

Closed Lazytron closed 3 years ago

Lazytron commented 3 years ago

Is your feature request related to a problem? Please describe. With the new movement system it would be nice to set certain items to show only if the field is defined (not "", 0, [], null, undefined, etc). Currently folks are using complex expressions for a combined alternate movement field, but it would be nice to set each alt movement to its own icon/color and have them only display if populated.

Describe the solution you'd like Either a full conditional set for each tag (which could absorb and replace the current disposition blocks if multiple conditions can be specified) or a tickbox indicating if the line should "hide when empty" or smiliar.

Describe alternatives you've considered Complex expression for multi-modal movement is OK, just feels a little rough to me.

Additional context Just a nice to have, possibly high effort low reward...=)

bmarian commented 3 years ago

I don't really understand your request. You can set the movement separately right now and if it's null will not be shown.

image

And if you don't want to show it on 0 you can make a super simple expression:

image

A really big request from the start was to show even values that are 0, and that will stay as it is.