Skip to content

Commit f56b610

Browse files
add bevy_quickmenu entry (#1218)
Co-authored-by: Forest Anderson <[email protected]>
1 parent 59c16e7 commit f56b610

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

content/news/040/bevy_quickmenu.gif

126 KB
Loading

content/news/040/index.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,53 @@ let heaviest = sparsey::run(&world, &resources, |weights: Comp<Weight>| {
406406
[Sparsey]: https://github.com/LechintanTudor/sparsey
407407
[@LechintanTudor]: https://github.com/LechintanTudor
408408

409+
### [Bevy Quickmenu][bevy_quickmenu_crates]
410+
411+
![Bevy Quickmenu simple menu demo](bevy_quickmenu.gif)
412+
413+
bevy_quickmenu ([crates.io][bevy_quickmenu_crates],
414+
[docs.rs][bevy_quickmenu_docs], [GitHub][bevy_quickmenu_github]) allows quickly
415+
creating nested game menus that can be navigated with keyboard, gamepad or
416+
mouse.
417+
418+
Bevy Quickmenu builds on BevyUI and allows defining nested menu structures in a
419+
super simple way. Its also very extensible and customisable. If you game needs
420+
menus and you would like to support multiple input methods, give it a try.
421+
422+
For example, a simple vertical menu can be defined like this:
423+
424+
```rust
425+
fn root_menu(state: &CustomState) -> Menu<Actions, Screens, CustomState> {
426+
Menu::new(
427+
"root",
428+
vec![
429+
MenuItem::image(state.logo.clone()),
430+
MenuItem::headline("Menu"),
431+
MenuItem::action("Start", Actions::Close),
432+
MenuItem::screen("Sound", Screens::Sound)
433+
.with_icon(MenuIcon::Sound),
434+
MenuItem::screen("Controls", Screens::Controls)
435+
.with_icon(MenuIcon::Controls),
436+
],
437+
)
438+
}
439+
```
440+
441+
For a more involved example, check out [this definition of a settings screen
442+
with control device selection and a sound menu][bevy_quickmenu_settings].
443+
[Version `0.1.5`][bevy_quickmenu_0.1.5] was just released which simplifies
444+
generics and makes it easier to create dynamic menus.
445+
446+
_Discussion:
447+
[/r/rust_gamedev][bevy_quickmenu_reddit]_
448+
449+
[bevy_quickmenu_crates]: https://crates.io/crates/bevy_quickmenu
450+
[bevy_quickmenu_docs]: https://docs.rs/bevy_quickmenu
451+
[bevy_quickmenu_github]: https://github.com/terhechte/bevy_quickmenu
452+
[bevy_quickmenu_settings]: https://github.com/terhechte/bevy_quickmenu/blob/main/examples/settings.rs
453+
[bevy_quickmenu_0.1.5]: https://github.com/terhechte/bevy_quickmenu/releases/tag/0.1.5
454+
[bevy_quickmenu_reddit]: https://www.reddit.com/r/bevy/comments/yyl73c/new_plugin_bevy_quickmenu_quickly_create_nested
455+
409456
## Popular Workgroup Issues in Github
410457

411458
<!-- Up to 10 links to interesting issues -->

0 commit comments

Comments
 (0)