Is your feature request related to a problem? Please describe.
Right now, each UI has to individually be "BringToFront" and there is only one UI in front.
It is hard to work with this method because we have to know wich UI we want to bring to front everytime anorther has disappear.
As an example:
We have two packages using an UI, one is an inventory and the orther prits message on an Alert.
  • The user is opening the Inventory and is about to click on an item => Inventory is on front
  • The server sends a notice for the player that will be displayed on a Altert => Alert is on front
  • The user takes notice of the message and closes the Alert => Alert is still on front
  • The user cannot click anymore on the inventory because it is not on front.
Describe the solution you'd like
A solution instead of sending all mouse/keyboard events to the last UI on front is to send all events to all opened UIs.
If a scripter don't want the UI to be clickable, maybe we can include an option to opt out of the events.
Describe alternatives you've considered
Anorther way might be to sending the events to the first UI and if there is no element to reply at that position to the Next but it is way harder to implement because some scripters might want to use divs as a container for example.
Created by GTNardy
May 8, 2022