PDA

View Full Version : bitmapwidget sendToBack causing frame corruption



mattekure
July 18th, 2024, 21:03
I have an odd graphical bug with my Indicators extension that I believe may be something in the client. this is occuring in both Live and the current Test channel.

Setup
5e campaign with only my indicators ext installed
Must have multiple NPCs of the same type in the combat tracker, so each is assigned a number
In options, token: Show name is set to Title

When initiative is passed, the frame for the token name gets corrupted. This occurs in every theme I've tried, often making it difficult or impossible to read.

These images are from current test channel, but the same occurs in current live channel.
Before initiative is passed
https://i.imgur.com/8G9brxG.png

After initiative is passed.
https://i.imgur.com/PQcw3Zl.png

After looking through my extension code, the line that appears to be causing this is

statusWidget.sendToBack();

this function is called right after creating the widget and is supposed to send it behind the other widgets, but not behind the token itself.

Moon Wizard
July 18th, 2024, 21:17
Thanks; I've forwarded to @pindercarl to review.

Do you happen to have a simple extension which showcases the issue that you can provide for him?

Regards,
JPG

mattekure
July 18th, 2024, 23:56
I have stripped down my extension to the bare minimum to show it. It displays after passing the turn. I've also attached the sample campaign.

This is what I see in this campaign in current Live channel after passing the initiative several times.

https://i.imgur.com/u4HwB1P.png

pindercarl
July 19th, 2024, 14:14
I have stripped down my extension to the bare minimum to show it. It displays after passing the turn. I've also attached the sample campaign.

This is what I see in this campaign in current Live channel after passing the initiative several times.

https://i.imgur.com/u4HwB1P.png

Thanks for providing the samples. I should have time today to take a look.

Moon Wizard
July 24th, 2024, 23:52
@mattekurre,

A fix for this issue is available in the beta test channel for release in mid-August.

Regards,
JPG

mattekure
July 25th, 2024, 00:05
Awesome. Thanks much

Vass_Dts
July 25th, 2024, 03:46
Great. Can't wait. This has been bugging me for weeks now. :)