diff --git a/Cargo.toml b/Cargo.toml index 73403c0..c32f370 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ [workspace.package] authors = ["IDEDARY"] - version = "0.1.0" + version = "0.1.1" edition = "2021" license = "MIT OR Apache-2.0" repository = "https://github.com/bytestring-net/bevy-lunex" @@ -26,19 +26,21 @@ [workspace.dependencies] - bevy_lunex = { path = "crates/bevy_lunex", version = "0.1.0" } - lunex_engine = { path = "crates/lunex_engine", version = "0.1.0" } + bevy_lunex = { path = "crates/bevy_lunex", version = "0.1.1" } + lunex_engine = { path = "crates/lunex_engine", version = "0.1.1" } colored = { version = "^2.1" } indexmap = { version = "^2.1" } thiserror = { version = "^1.0" } - bevy = { version = "0.13.2", default_features = false, features = [ + bevy = { version = "0.14.0-rc.3", default_features = false, features = [ "bevy_pbr", "bevy_sprite", + "bevy_audio", "bevy_text", - "multi-threaded", + "multi_threaded", "bevy_gizmos", ] } - bevy_mod_picking = { version = "0.19.0", default_features = false, features = [] } \ No newline at end of file + #bevy_mod_picking = { path = "../../Prototypes/bevy_mod_picking", default_features = false, features = [] } + bevy_mod_picking = { version = "0.20.0-rc.0", default_features = false, features = ["selection","highlight","debug",] } \ No newline at end of file diff --git a/README.md b/README.md index 2e54807..f29355b 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,8 @@ For production ready example/template check out [`Bevypunk source code`](https:/ | Bevy | Bevy Lunex | |--------|-----------------| -| 0.13.2 | 0.1.0 - latest | +| 0.14.0 | 0.1.1 | +| 0.13.2 | 0.1.0 | | 0.12.1 | 0.0.10 - 0.0.11 | | 0.12.0 | 0.0.7 - 0.0.9 | | 0.11.2 | 0.0.1 - 0.0.6 | diff --git a/crates/bevy_lunex/README.md b/crates/bevy_lunex/README.md index 2e54807..f29355b 100644 --- a/crates/bevy_lunex/README.md +++ b/crates/bevy_lunex/README.md @@ -89,7 +89,8 @@ For production ready example/template check out [`Bevypunk source code`](https:/ | Bevy | Bevy Lunex | |--------|-----------------| -| 0.13.2 | 0.1.0 - latest | +| 0.14.0 | 0.1.1 | +| 0.13.2 | 0.1.0 | | 0.12.1 | 0.0.10 - 0.0.11 | | 0.12.0 | 0.0.7 - 0.0.9 | | 0.11.2 | 0.0.1 - 0.0.6 | diff --git a/crates/bevy_lunex/src/logic/core.rs b/crates/bevy_lunex/src/logic/core.rs index 216810c..9a12dca 100644 --- a/crates/bevy_lunex/src/logic/core.rs +++ b/crates/bevy_lunex/src/logic/core.rs @@ -55,7 +55,6 @@ fn ui_click_emitter_system(mut events: EventReader>, mut write: Ev } - #[derive(Component, Clone, PartialEq, Eq)] pub struct OnUiClickCommands { pub closure: fn(&mut Commands), diff --git a/crates/bevy_lunex/src/logic/states.rs b/crates/bevy_lunex/src/logic/states.rs index b33543b..f7ec799 100644 --- a/crates/bevy_lunex/src/logic/states.rs +++ b/crates/bevy_lunex/src/logic/states.rs @@ -38,10 +38,6 @@ pub struct UiAnimator { pub (crate) animation_direction: f32, /// Range from `0.0` to `1.0` pub (crate) animation_transition: f32, - /// Range from `0.0` to `1.0`, animation_transition from last tick - previous_transition: f32, - /// Whenever the hover transition is currently changing - pub is_changing: bool, /// Setting this to true will disable logic with intention that something else will pipe the control data instead pub receiver: bool, /// Hover animation speed when transitioning to state @@ -56,8 +52,6 @@ impl UiAnimator { marker: PhantomData, animation_direction: 0.0, animation_transition: 0.0, - previous_transition: 0.0, - is_changing: false, receiver: false, animation_speed_backward: 8.0, animation_speed_forward: 8.0, @@ -85,14 +79,14 @@ impl UiAnimator { } fn ui_animation(time: Res