Larkinabout / fvtt-token-action-hud-core

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

[QUESTION] #189

Closed mrcomac closed 11 months ago

mrcomac commented 1 year ago

Describe the question How to use the icon option available in the info? Not sure if I'm understand correctly but I can see the info field supports text and icon https://github.com/Larkinabout/fvtt-token-action-hud-core/blob/main/templates/action.hbs#L15

when I try const info1 = { icon: '<i class="fa fa-plus" aria-hidden="true"></i>' } is doesn't work (the icon is just a placeholder for now).

When I use const info1 = { text: 'test' } it works.

The goal is to add up to 3 images right after the name of an item with its caracteristics, for example ranged/melee, slow, etc.

Larkinabout commented 1 year ago

You're using it correctly, it's just broken as ActionHandler.#createAction isn't passing on the property. I'll fix it for the next release.

Also, a reminder to me to add in the tooltip when using icon.

Larkinabout commented 11 months ago

Fixed in Token Action HUD Core 1.4.19.