diff --git a/Cargo.toml b/Cargo.toml index 1bde28b..78c086a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,12 +11,12 @@ license = "MIT OR Apache-2.0" description = "Simple to use plugin implementing ScrollView into Bevy engine." [dependencies.bevy] -version = "0.15.0-rc.3" +version = "0.15" default-features = false features = ["bevy_ui", "bevy_asset", "bevy_text"] [dev-dependencies.bevy] -version = "0.15.0-rc.3" +version = "0.15" default-features = true [features] diff --git a/examples/simple.rs b/examples/simple.rs index cbf709e..de29b16 100644 --- a/examples/simple.rs +++ b/examples/simple.rs @@ -15,7 +15,7 @@ fn main() { } fn prepare(mut commands: Commands) { - commands.spawn(Camera2d::default()); + commands.spawn(Camera2d); commands .spawn(( BackgroundColor(CLR_1), @@ -47,7 +47,7 @@ fn prepare(mut commands: Commands) { BackgroundColor(CLR_2), BorderColor(CLR_4), Button, - btn_action.clone(), + btn_action, )) .with_children(|p| { p.spawn(( @@ -110,13 +110,14 @@ fn prepare(mut commands: Commands) { } #[derive(Component, PartialEq, Debug, Clone, Copy)] +#[require(Button)] enum ScrollButton { MoveToTop, MoveToBottom, } fn reset_scroll( - q: Query<(&Interaction, &ScrollButton), (Changed, With