PDA

View Full Version : bitmapwidget interaction



mattekure
March 2nd, 2024, 18:34
One of my extensions adds a bitmapwidget to tokens. In both the current live and test build, when the bitmap widget is applied, it seems to disable the ability to mouse over the token icons which normally shows a popup of the effect. In the code I am using to set the bitmapwidget, I am sending it to back and setEnabled(false). But it still seems to be interfering with the mouseover event. Is there anything else I can do to make it so it wont interfere with mousing over the icons placed on the token?

Code used:
https://i.imgur.com/LMLxvg1.png

Normal Behavior, my bitmapwidget not applied, mouse over one of the icons and effect tooltip appears, cursor not captured in image
https://i.imgur.com/qp5HYBa.png

Behavior with my bitmapwidget applied, mouse over one of the icons, effect tooltip does not appear, cursor not captured in image.
https://i.imgur.com/z918sYu.png

pindercarl
March 2nd, 2024, 20:19
I'll take a look at it and see if it is an error from the engine side.

[Edit: On the engine side, widgets are skipped if they are not visible or disabled. Can you add some tooltip text to your widget to verify that it is intercepting the mouse input? If you can provide a copy of the extension, that would help track it down.]

mattekure
March 2nd, 2024, 22:05
My extension is a paid one on the Forge. You can get it there, or I can email a copy, whichever is easier. Other than the single line change mentioned below, I am testing on whats currently set to live.
https://forge.fantasygrounds.com/shop/items/620/view

I changed the code to add a tooltip as follows.
https://i.imgur.com/cEYMzkZ.png

The results are the same though. The tooltip I put in does not display. and the icon tooltips do not display if my bitmapwidget is active. In the screenshot below my mouse is over one of the icon images.
https://i.imgur.com/Bvvd3i8.png

pindercarl
March 2nd, 2024, 22:08
Can you email the extension to me at [email protected]? Thanks.

mattekure
March 2nd, 2024, 22:26
Can you email the extension to me at [email protected]? Thanks.

sent, thanks