ClanGenOfficial / clangen

Warrior Cats fan game
https://clangen.io
Other
268 stars 477 forks source link

[BUG] Buttons on main menu are clickable through error dialogue #3040

Open rustykitty opened 4 hours ago

rustykitty commented 4 hours ago

Type: (only select one)

Describe the bug

when an error occurs while loading the game, the buttons on the main menu are clickable through the error dialogue.

also, the buttons on the error dialogue stop working after clicking into the settings screen and then back, but this is not as important if you can't switch screens in the first place.

expected behavior: you can't press the buttons on the main menuwhen the error dialogue is open

Grade: (only select one)

Reproduce Steps to reproduce the behavior:

  1. intentionally cause a json error in save files
  2. click on the settings button (but do not close out of the error dialogue)
  3. return to main menu
  4. click on the close button for the error dialogue

Patrol ID + Outcome Print (if applicable): N/A

Commit # or Game Version Number: first observed on stable v0.11.2, reproduced on https://github.com/ClanGenOfficial/clangen/commit/671177d1f5f7f6e2596c0276d227b560a372e82e

Additional context Add any other context about the problem here.

Screenshots

https://github.com/user-attachments/assets/e920145f-22ac-4c16-b41f-18ac042267c6