Whenever the image of the map changes ('re-draws'), it draws over a label that is on top of it.
Here is a sample project that shows the bug.
Numbered Steps to Reproduce Problem:
- Create a map window.
- Add a map control to the window.
- Add a label to the window, and make sure it appears over the map control.
- Test your game, only to notice that the label disappears whenever the visible map changes.
Code Snippet (if applicable) to Reproduce Problem:
(See sample project above)
The label to appear on top of the map at all times, and not be drawn over.
The label disappears whenever the map updates.
Does the problem occur:
Every time? Or how often? Always.
In other games? Most likely.
In other user accounts? Yes.
On other computers? I have not tested.
When does the problem NOT occur?
When the label is not transparent.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked?
I think it always has.
I'm not sure of a complete workaround, because even the mob moving causes the map to smoothly center the mob on the screen, which will cause the label to be drawn over every frame.
I guess one way would be to have a constant running loop that updates the label every tick. However, it seems to ignore updates that cause no modification, so either, you'd have to modify the label or update it twice: Once to tell it to update, and again to change it back.
Both ways would probably cause slowdowns. (And are quite troublesome if all you intended to have was a static, unchanging label.)
The problem only occurs when the label is transparent.