Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking on the t in Star*t* Game autoselects the tower base behind it. #3

Closed
Dimonade opened this issue Nov 20, 2022 · 1 comment
Closed

Comments

@Dimonade
Copy link

Dimonade commented Nov 20, 2022

Good day,

I have encountered a situation that when one clicks on the second t in Start Game, then when the game starts the tower base is already selected. Clicking on other locations of the Start Game buttons that do not have bases behind them do not select the spawn tower UI elements.

It is as if the main menu button allowing the clicks to bypass it.
Perhaps it is something related to bevy_mod_picking ignoring UI elements?

I did not have time to dig into that deeper, but I will read about it during the week hopefully.

Here is the area to click:
2022-11-20-144046_194x105_scrot

My system: Latest Manjaro (X and Wayland) and Gentoo (with Wayland).
If any more information is required, please let me know.
Thanks!

Edit:
Found the following reddit thread and the corresponding issue in bevy.

@mwbryant
Copy link
Owner

mwbryant commented Dec 3, 2022

Clicking through the UI is a problem in bevy that you need to handle carefully, however in this case we can solve this bug by just resetting mouse input when we exit the start menu. I am addressing this in the next video and it's solved on that branch.

@mwbryant mwbryant closed this as completed Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants