Larkinabout / fvtt-token-action-hud-core

Token Action HUD is a repositionable HUD of actions for a selected token.
13 stars 20 forks source link

[BUG] button description #238

Closed mrcomac closed 4 months ago

mrcomac commented 5 months ago

Describe the bug Not sure if it's a bug or i'm doing something wrong.

I'm trying to create buttons with the field description, however the description doesn't display when I let the mouse on the button, it shows the name of the button.

example:

{
        id:'move',
        name: "Move",
        img: "icons/skills/movement/arrow-upward-yellow.webp",
        description: "Move up to your Pace in inches, up to once per turn. You don't need to move all at once, you can split it.",
        encodedValue: ['main_action', "move"].join(delimiter)
    }

Steps to reproduce

  1. Add a button with the field description (addActions within the class ActionHandler)
  2. Go and let the mouse on the button
  3. It shows the button name

Versions:

Additional context i'm trying to update the hud to provide a new help menu for players. This new group of buttons will display action and free actions players can take during a combat.

Larkinabout commented 5 months ago

Is it because the property is tooltip and not description?

mrcomac commented 4 months ago

Tooltip did work, thank you image