bevy/examples/games
Klaas-Jan Boon 37316c7706
Fix "game_menu" example buttons not changing color on Interaction (#15153)
# Objective

Fixes #15079 , repairing the `game_menu` example

## Solution

- Changed the target component for the color updates from `UiImage` to
`BackgroundColor`.
- Changed the width of the `button_style` to `300px` to prevent overlap
with the text.

## Testing

Checked that buttons now correctly update their background color on
hover/exit/press.

---

## Showcase



https://github.com/user-attachments/assets/8f7ede9b-c271-4b59-91f9-27d9e3db1429
2024-09-11 00:49:27 +00:00
..
alien_cake_addict.rs glTF labels: add enum to avoid misspelling and keep up-to-date list documented (#13586) 2024-05-31 23:25:57 +00:00
breakout.rs Remove stepping from default features (#12847) 2024-04-03 19:16:02 +00:00
contributors.rs Disentangle bevy_utils/bevy_core's reexported dependencies (#12313) 2024-03-07 02:30:15 +00:00
desk_toy.rs Return Results from Camera's world/viewport conversion methods (#14989) 2024-09-03 19:45:15 +00:00
game_menu.rs Fix "game_menu" example buttons not changing color on Interaction (#15153) 2024-09-11 00:49:27 +00:00
loading_screen.rs Rename Commands::register_one_shot_system -> register_system (#14910) 2024-08-25 14:12:13 +00:00
stepping.rs style: simplify string formatting for readability (#15033) 2024-09-03 23:35:49 +00:00