Skip to content
Open
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
2,116 changes: 1,434 additions & 682 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bevy_quickmenu"
version = "0.4.0"
version = "0.6.0"
edition = "2021"
authors = ["Benedikt Terhechte"]
description = "A simple way of quickly creating nested menus in bevy that can be navigated with keys, gamepads and pointers"
Expand All @@ -14,7 +14,7 @@ exclude = ["data", "assets", ".vscode", "icons.sketch", ".DS_Store"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bevy = { version = "0.13.0", default-features = false, features = [
bevy = { version = "0.15.0", default-features = false, features = [
"bevy_ui",
"bevy_render",
"bevy_asset",
Expand All @@ -23,4 +23,4 @@ bevy = { version = "0.13.0", default-features = false, features = [
] }

[dev-dependencies]
bevy = "0.13"
bevy = "0.15"
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ bevy_quickmenu = "0.1.5"

| Bevy Version | Crates Version |
| ------------ | -------------- |
| 0.15.0 | 0.6.0 |
| 0.14.0 | 0.5.0 |
| 0.13.0 | 0.4.0 |
| 0.12.0 | 0.3.0 |
| 0.11.0 | 0.2.0 |
Expand Down
14 changes: 7 additions & 7 deletions examples/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
let mut button_style = StyleEntry::button();
button_style.size = 25.0;
button_style.selected = ControlState {
fg: Color::YELLOW,
bg: Color::RED,
fg: Color::srgb(1.0, 1.0, 0.0),
bg: Color::srgb(1.0, 0.0, 0.0),
};

let sheet = Stylesheet {
button: button_style,
..Default::default()
}
.with_background(BackgroundColor(Color::BISQUE));
.with_background(BackgroundColor(Color::srgb(1.0, 0.89, 0.77)));

// Load custom icons
let state = BasicState {
Expand Down Expand Up @@ -138,8 +138,8 @@ fn root_menu(state: &BasicState) -> Menu<Screens> {
vec![
MenuItem::headline([
RichTextEntry::new("Rich "),
RichTextEntry::new_color("Text ", Color::RED),
RichTextEntry::new_color("!", Color::YELLOW),
RichTextEntry::new_color("Text ", Color::srgb(1.0,0.0,0.0)),
RichTextEntry::new_color("!", Color::srgb(1.0, 1.0, 0.0)),
]),
MenuItem::action("Close", Actions::Close).with_icon(MenuIcon::Back),
MenuItem::label("Use a custom Icon"),
Expand All @@ -160,8 +160,8 @@ fn boolean_menu(state: &BasicState) -> Menu<Screens> {
MenuItem::action("Toggle Boolean 2", Actions::Toggle2).checked(state.boolean2),
],
)
.with_background(BackgroundColor(Color::NAVY))
.with_style(Style {
.with_background(BackgroundColor(Color::srgb(0.0,0.0,0.5)))
.with_style(Node {
align_items: AlignItems::FlexEnd,
flex_direction: FlexDirection::Column,
..Default::default()
Expand Down
Loading