Skip to content

add bevy_quickmenu entry #1218

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

Merged
merged 3 commits into from
Dec 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added content/news/040/bevy_quickmenu.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions content/news/040/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,53 @@ let heaviest = sparsey::run(&world, &resources, |weights: Comp<Weight>| {
[Sparsey]: https://github.com/LechintanTudor/sparsey
[@LechintanTudor]: https://github.com/LechintanTudor

### [Bevy Quickmenu][bevy_quickmenu_crates]

![Bevy Quickmenu simple menu demo](bevy_quickmenu.gif)

bevy_quickmenu ([crates.io][bevy_quickmenu_crates],
[docs.rs][bevy_quickmenu_docs], [GitHub][bevy_quickmenu_github]) allows quickly
creating nested game menus that can be navigated with keyboard, gamepad or
mouse.

Bevy Quickmenu builds on BevyUI and allows defining nested menu structures in a
super simple way. Its also very extensible and customisable. If you game needs
menus and you would like to support multiple input methods, give it a try.

For example, a simple vertical menu can be defined like this:

```rust
fn root_menu(state: &CustomState) -> Menu<Actions, Screens, CustomState> {
Menu::new(
"root",
vec![
MenuItem::image(state.logo.clone()),
MenuItem::headline("Menu"),
MenuItem::action("Start", Actions::Close),
MenuItem::screen("Sound", Screens::Sound)
.with_icon(MenuIcon::Sound),
MenuItem::screen("Controls", Screens::Controls)
.with_icon(MenuIcon::Controls),
],
)
}
```

For a more involved example, check out [this definition of a settings screen
with control device selection and a sound menu][bevy_quickmenu_settings].
[Version `0.1.5`][bevy_quickmenu_0.1.5] was just released which simplifies
generics and makes it easier to create dynamic menus.

_Discussion:
[/r/rust_gamedev][bevy_quickmenu_reddit]_

[bevy_quickmenu_crates]: https://crates.io/crates/bevy_quickmenu
[bevy_quickmenu_docs]: https://docs.rs/bevy_quickmenu
[bevy_quickmenu_github]: https://github.com/terhechte/bevy_quickmenu
[bevy_quickmenu_settings]: https://github.com/terhechte/bevy_quickmenu/blob/main/examples/settings.rs
[bevy_quickmenu_0.1.5]: https://github.com/terhechte/bevy_quickmenu/releases/tag/0.1.5
[bevy_quickmenu_reddit]: https://www.reddit.com/r/bevy/comments/yyl73c/new_plugin_bevy_quickmenu_quickly_create_nested

## Popular Workgroup Issues in Github

<!-- Up to 10 links to interesting issues -->
Expand Down