MyreMylar / pygame_gui

A GUI system for pygame.
MIT License
700 stars 83 forks source link

Overlapping visible UI elements: handle detection and events in the correct order #624

Closed violet4 closed 3 months ago

violet4 commented 3 months ago

When multiple visible UI elements overlap, process mouse detection and event handling in the correct order so the top element receives events and detection as expected. Fixes #609.

violet4 commented 3 months ago

it turns out i didn't check closely enough. this also changes the draw order, and could possibly break a lot of stuff for a lot of people.. not a good idea.