Larkinabout / fvtt-token-action-hud-core

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

[FEATURE] Handling clicks into the empty area of a category #141

Open Larkinabout opened 1 year ago

Larkinabout commented 1 year ago

Drental/fvtt-tokenactionhud/issues/416

Can you handle clicks that click outside of any controls in a category and close the category? I find that even the default length of the area of the strike locks too much of a map space and requires the player/DM to click ESC to close the opened category and deselect the token or to move the mouse very far from the area (and it is hard to imagine how wide the category area is since it is 100% transparent) so it is very hard to deselect sometimes. For example, as shown below, clicking in the red square area should close the category even if it is inside its rendering zone.

image

Larkinabout commented 1 year ago

This one is a little tricky as 'Click to Open' users may very well want the group to stay open. The main issue with the example given is that I've put an arbitrary custom width on the group to make sure the actions stay on one line. This is making the width longer than necessary in this instance.

A module setting may suffice or tweaking the way width is calculated.

apoapostolov commented 1 year ago

A auto-calculated width is perhaps the best approach to solve this issue. No need to reserve screen space that is not filled in with options..