Is your feature request related to a problem? Please describe.
I am programming a game using bevy and bevy_egui. My map editor uses egui to show selector buttons for different tiles that can be placed on the game board.
Since some of the tiles have different variants, I show those tiles in a drop-down menu:
When a user clicks on a button in the dropdown menu, the click is also registered as a click on the GameBoard, placing a tile on the board. This bug has already been reported here: https://github.com/bevyengine/bevy/issues/3570 - To work around that bug, I am trying to set a flag in my mouse handlers that change their values when a menu is opened.
To set this flag, I currently do not see any possibility of getting the menu open state from my Ui object (menu_state is private in Ui, unfortunately).
Describe the solution you'd like
I could see a solution by either making menu_state public, or by adding a menu_is_open() function in Ui
Is your feature request related to a problem? Please describe.
I am programming a game using bevy and bevy_egui. My map editor uses egui to show selector buttons for different tiles that can be placed on the game board.
Since some of the tiles have different variants, I show those tiles in a drop-down menu:
When a user clicks on a button in the dropdown menu, the click is also registered as a click on the GameBoard, placing a tile on the board. This bug has already been reported here: https://github.com/bevyengine/bevy/issues/3570 - To work around that bug, I am trying to set a flag in my mouse handlers that change their values when a menu is opened.
To set this flag, I currently do not see any possibility of getting the menu open state from my Ui object (
menu_state
is private in Ui, unfortunately).Describe the solution you'd like
I could see a solution by either making
menu_state
public, or by adding a menu_is_open() function in UiDescribe alternatives you've considered
Additional context
The bug I am trying to fix is reported here: https://github.com/lukas-kirschner/Exodus/issues/44