From 4d32fb0f3548256e1ad25b2e23d2be15565a28e1 Mon Sep 17 00:00:00 2001 From: Jerome Humbert Date: Tue, 7 Nov 2023 18:21:08 +0000 Subject: [PATCH] Pre-release clean-ups before 0.9.0 --- CHANGELOG.md | 1 + README.md | 44 +++++++++++++++++++++---------------------- benchmarks/Cargo.toml | 2 +- examples/menu.rs | 2 +- src/lens.rs | 44 +++++++++++++++++++++---------------------- src/lib.rs | 16 ++++++++-------- src/plugin.rs | 10 +++++----- 7 files changed, 60 insertions(+), 59 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e4b5ca..4d884ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +- Compatible with Bevy 0.12 - The `AssetAnimator` doesn't take any `Handle` anymore; instead the `asset_animator_system::()` retrieves the handle of the asset to animate from the same `Entity` the `AssetAnimator` is attached to. This aligns the behavior with component animation. (#101) ### Fixed diff --git a/README.md b/README.md index f5837eb..a187efd 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ [![Crate](https://img.shields.io/crates/v/bevy_tweening.svg)](https://crates.io/crates/bevy_tweening) [![Build Status](https://github.com/djeedai/bevy_tweening/actions/workflows/ci.yaml/badge.svg)](https://github.com/djeedai/bevy_tweening/actions/workflows/ci.yaml) [![Coverage Status](https://coveralls.io/repos/github/djeedai/bevy_tweening/badge.svg?branch=main&kill_cache=1)](https://coveralls.io/github/djeedai/bevy_tweening?branch=main) -[![Bevy tracking](https://img.shields.io/badge/Bevy%20tracking-v0.11-lightblue)](https://github.com/bevyengine/bevy/blob/main/docs/plugins_guidelines.md#main-branch-tracking) +[![Bevy tracking](https://img.shields.io/badge/Bevy%20tracking-v0.12-lightblue)](https://github.com/bevyengine/bevy/blob/main/docs/plugins_guidelines.md#main-branch-tracking) Tweening animation plugin for the Bevy game engine. @@ -144,17 +144,17 @@ The naming scheme for predefined lenses is `"Lens"`, wher | Target Component | Animated Field | Lens | Feature | |---|---|---|---| -| [`Transform`](https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html) | [`translation`](https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html#structfield.translation) | [`TransformPositionLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TransformPositionLens.html) | | -| | [`rotation`](https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html#structfield.rotation) (`Quat`)¹ | [`TransformRotationLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TransformRotationLens.html) | | -| | [`rotation`](https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html#structfield.rotation) (angle)² | [`TransformRotateXLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TransformRotateXLens.html) | | -| | [`rotation`](https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html#structfield.rotation) (angle)² | [`TransformRotateYLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TransformRotateYLens.html) | | -| | [`rotation`](https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html#structfield.rotation) (angle)² | [`TransformRotateZLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TransformRotateZLens.html) | | -| | [`rotation`](https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html#structfield.rotation) (angle)² | [`TransformRotateAxisLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TransformRotateAxisLens.html) | | -| | [`scale`](https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html#structfield.scale) | [`TransformScaleLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TransformScaleLens.html) | | -| [`Sprite`](https://docs.rs/bevy/0.11.0/bevy/sprite/struct.Sprite.html) | [`color`](https://docs.rs/bevy/0.11.0/bevy/sprite/struct.Sprite.html#structfield.color) | [`SpriteColorLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.SpriteColorLens.html) | `bevy_sprite` | -| [`Style`](https://docs.rs/bevy/0.11.0/bevy/ui/struct.Style.html) | [`position`](https://docs.rs/bevy/0.11.0/bevy/ui/struct.Style.html#structfield.position) | [`UiPositionLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.UiPositionLens.html) | `bevy_ui` | -| [`BackgroundColor`](https://docs.rs/bevy/0.11.0/bevy/ui/struct.BackgroundColor.html)| | [`UiBackgroundColorLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.UiBackgroundColorLens.html) | `bevy_ui` | -| [`Text`](https://docs.rs/bevy/0.11.0/bevy/text/struct.Text.html) | [`TextStyle::color`](https://docs.rs/bevy/0.11.0/bevy/text/struct.TextStyle.html#structfield.color) | [`TextColorLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TextColorLens.html) | `bevy_text` | +| [`Transform`](https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html) | [`translation`](https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html#structfield.translation) | [`TransformPositionLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TransformPositionLens.html) | | +| | [`rotation`](https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html#structfield.rotation) (`Quat`)¹ | [`TransformRotationLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TransformRotationLens.html) | | +| | [`rotation`](https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html#structfield.rotation) (angle)² | [`TransformRotateXLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TransformRotateXLens.html) | | +| | [`rotation`](https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html#structfield.rotation) (angle)² | [`TransformRotateYLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TransformRotateYLens.html) | | +| | [`rotation`](https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html#structfield.rotation) (angle)² | [`TransformRotateZLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TransformRotateZLens.html) | | +| | [`rotation`](https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html#structfield.rotation) (angle)² | [`TransformRotateAxisLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TransformRotateAxisLens.html) | | +| | [`scale`](https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html#structfield.scale) | [`TransformScaleLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TransformScaleLens.html) | | +| [`Sprite`](https://docs.rs/bevy/0.12.0/bevy/sprite/struct.Sprite.html) | [`color`](https://docs.rs/bevy/0.12.0/bevy/sprite/struct.Sprite.html#structfield.color) | [`SpriteColorLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.SpriteColorLens.html) | `bevy_sprite` | +| [`Style`](https://docs.rs/bevy/0.12.0/bevy/ui/struct.Style.html) | [`position`](https://docs.rs/bevy/0.12.0/bevy/ui/struct.Style.html#structfield.position) | [`UiPositionLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.UiPositionLens.html) | `bevy_ui` | +| [`BackgroundColor`](https://docs.rs/bevy/0.12.0/bevy/ui/struct.BackgroundColor.html)| | [`UiBackgroundColorLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.UiBackgroundColorLens.html) | `bevy_ui` | +| [`Text`](https://docs.rs/bevy/0.12.0/bevy/text/struct.Text.html) | [`TextStyle::color`](https://docs.rs/bevy/0.12.0/bevy/text/struct.TextStyle.html#structfield.color) | [`TextColorLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.TextColorLens.html) | `bevy_text` | ¹ Shortest-path interpolation between two rotations, using `Quat::slerp()`. @@ -168,7 +168,7 @@ Asset animation always requires the `bevy_asset` feature. | Target Asset | Animated Field | Lens | Feature | |---|---|---|---| -| [`ColorMaterial`](https://docs.rs/bevy/0.11.0/bevy/sprite/struct.ColorMaterial.html) | [`color`](https://docs.rs/bevy/0.11.0/bevy/sprite/struct.ColorMaterial.html#structfield.color) | [`ColorMaterialColorLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.ColorMaterialColorLens.html) | `bevy_asset` + `bevy_sprite` | +| [`ColorMaterial`](https://docs.rs/bevy/0.12.0/bevy/sprite/struct.ColorMaterial.html) | [`color`](https://docs.rs/bevy/0.12.0/bevy/sprite/struct.ColorMaterial.html#structfield.color) | [`ColorMaterialColorLens`](https://docs.rs/bevy_tweening/latest/bevy_tweening/lens/struct.ColorMaterialColorLens.html) | `bevy_asset` + `bevy_sprite` | ## Custom lens @@ -200,7 +200,7 @@ The two formulations are mathematically equivalent, but one may be more suited t ## Custom component support -Custom components are animated via a lens like the ones described in (Bevy Components)[#bevy-components]. +Custom components are animated via a lens like the ones described in [Bevy Components](#bevy-components). ```rust #[derive(Component)] @@ -226,7 +226,7 @@ The process is similar to custom components, creating a custom lens for the cust ## Examples -See the [`examples/`](https://github.com/djeedai/bevy_tweening/tree/cad68be96e492482cb6dfd395f07d4bc73d353bf/examples) folder. +See the [`examples/`](https://github.com/djeedai/bevy_tweening/tree/77b89d9df5a28f66ae6b153e6d24cf0d58042353/examples) folder. ### [`menu`](examples/menu.rs) @@ -234,7 +234,7 @@ See the [`examples/`](https://github.com/djeedai/bevy_tweening/tree/cad68be96e49 cargo run --example menu --features="bevy/bevy_winit" ``` -![menu](https://raw.githubusercontent.com/djeedai/bevy_tweening/cad68be96e492482cb6dfd395f07d4bc73d353bf/examples/menu.gif) +![menu](https://raw.githubusercontent.com/djeedai/bevy_tweening/77b89d9df5a28f66ae6b153e6d24cf0d58042353/examples/menu.gif) ### [`sprite_color`](examples/sprite_color.rs) @@ -242,7 +242,7 @@ cargo run --example menu --features="bevy/bevy_winit" cargo run --example sprite_color --features="bevy/bevy_winit" ``` -![sprite_color](https://raw.githubusercontent.com/djeedai/bevy_tweening/cad68be96e492482cb6dfd395f07d4bc73d353bf/examples/sprite_color.gif) +![sprite_color](https://raw.githubusercontent.com/djeedai/bevy_tweening/77b89d9df5a28f66ae6b153e6d24cf0d58042353/examples/sprite_color.gif) ### [`transform_rotation`](examples/transform_rotation.rs) @@ -250,7 +250,7 @@ cargo run --example sprite_color --features="bevy/bevy_winit" cargo run --example transform_rotation --features="bevy/bevy_winit" ``` -![sprite_color](https://raw.githubusercontent.com/djeedai/bevy_tweening/cad68be96e492482cb6dfd395f07d4bc73d353bf/examples/transform_rotation.gif) +![sprite_color](https://raw.githubusercontent.com/djeedai/bevy_tweening/77b89d9df5a28f66ae6b153e6d24cf0d58042353/examples/transform_rotation.gif) ### [`transform_translation`](examples/transform_translation.rs) @@ -258,7 +258,7 @@ cargo run --example transform_rotation --features="bevy/bevy_winit" cargo run --example transform_translation --features="bevy/bevy_winit" ``` -![sprite_color](https://raw.githubusercontent.com/djeedai/bevy_tweening/cad68be96e492482cb6dfd395f07d4bc73d353bf/examples/transform_translation.gif) +![sprite_color](https://raw.githubusercontent.com/djeedai/bevy_tweening/77b89d9df5a28f66ae6b153e6d24cf0d58042353/examples/transform_translation.gif) ### [`colormaterial_color`](examples/colormaterial_color.rs) @@ -266,7 +266,7 @@ cargo run --example transform_translation --features="bevy/bevy_winit" cargo run --example colormaterial_color --features="bevy/bevy_winit" ``` -![colormaterial_color](https://raw.githubusercontent.com/djeedai/bevy_tweening/cad68be96e492482cb6dfd395f07d4bc73d353bf/examples/colormaterial_color.gif) +![colormaterial_color](https://raw.githubusercontent.com/djeedai/bevy_tweening/77b89d9df5a28f66ae6b153e6d24cf0d58042353/examples/colormaterial_color.gif) ### [`ui_position`](examples/ui_position.rs) @@ -274,7 +274,7 @@ cargo run --example colormaterial_color --features="bevy/bevy_winit" cargo run --example ui_position --features="bevy/bevy_winit" ``` -![ui_position](https://raw.githubusercontent.com/djeedai/bevy_tweening/cad68be96e492482cb6dfd395f07d4bc73d353bf/examples/ui_position.gif) +![ui_position](https://raw.githubusercontent.com/djeedai/bevy_tweening/77b89d9df5a28f66ae6b153e6d24cf0d58042353/examples/ui_position.gif) ### [`sequence`](examples/sequence.rs) @@ -282,7 +282,7 @@ cargo run --example ui_position --features="bevy/bevy_winit" cargo run --example sequence --features="bevy/bevy_winit" ``` -![sequence](https://raw.githubusercontent.com/djeedai/bevy_tweening/cad68be96e492482cb6dfd395f07d4bc73d353bf/examples/sequence.gif) +![sequence](https://raw.githubusercontent.com/djeedai/bevy_tweening/77b89d9df5a28f66ae6b153e6d24cf0d58042353/examples/sequence.gif) ## Ease Functions diff --git a/benchmarks/Cargo.toml b/benchmarks/Cargo.toml index 5469734..b53cacc 100644 --- a/benchmarks/Cargo.toml +++ b/benchmarks/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bevy_tweening_bench" -version = "0.8.0" +version = "0.9.0" authors = ["Jerome Humbert "] edition = "2021" description = "Tweening plugin for Bevy -- Benchmarks" diff --git a/examples/menu.rs b/examples/menu.rs index 33d07e2..c15eef3 100644 --- a/examples/menu.rs +++ b/examples/menu.rs @@ -138,7 +138,7 @@ fn enable_interaction_after_initial_animation( mut commands: Commands, mut reader: EventReader, ) { - for event in reader.iter() { + for event in reader.read() { if event.user_data == INIT_TRANSITION_DONE { commands.entity(event.entity).insert(InitTransitionDone); } diff --git a/src/lens.rs b/src/lens.rs index 47ee9dc..a48a0c4 100644 --- a/src/lens.rs +++ b/src/lens.rs @@ -31,9 +31,9 @@ //! - [`TransformRotateZLens`] //! - [`TransformRotateAxisLens`] //! -//! [`rotation`]: https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html#structfield.rotation -//! [`Transform`]: https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html -//! [`Quat::slerp()`]: https://docs.rs/bevy/0.11.0/bevy/math/struct.Quat.html#method.slerp +//! [`rotation`]: https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html#structfield.rotation +//! [`Transform`]: https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html +//! [`Quat::slerp()`]: https://docs.rs/bevy/0.12.0/bevy/math/struct.Quat.html#method.slerp use bevy::prelude::*; @@ -77,8 +77,8 @@ pub trait Lens { /// A lens to manipulate the [`color`] field of a section of a [`Text`] /// component. /// -/// [`color`]: https://docs.rs/bevy/0.11.0/bevy/text/struct.TextStyle.html#structfield.color -/// [`Text`]: https://docs.rs/bevy/0.11.0/bevy/text/struct.Text.html +/// [`color`]: https://docs.rs/bevy/0.12.0/bevy/text/struct.TextStyle.html#structfield.color +/// [`Text`]: https://docs.rs/bevy/0.12.0/bevy/text/struct.Text.html #[cfg(feature = "bevy_text")] #[derive(Debug, Copy, Clone, PartialEq)] pub struct TextColorLens { @@ -107,8 +107,8 @@ impl Lens for TextColorLens { /// A lens to manipulate the [`translation`] field of a [`Transform`] component. /// -/// [`translation`]: https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html#structfield.translation -/// [`Transform`]: https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html +/// [`translation`]: https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html#structfield.translation +/// [`Transform`]: https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html #[derive(Debug, Copy, Clone, PartialEq)] pub struct TransformPositionLens { /// Start value of the translation. @@ -137,9 +137,9 @@ impl Lens for TransformPositionLens { /// See the [top-level `lens` module documentation] for a comparison of rotation /// lenses. /// -/// [`rotation`]: https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html#structfield.rotation -/// [`Transform`]: https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html -/// [`Quat::slerp()`]: https://docs.rs/bevy/0.11.0/bevy/math/struct.Quat.html#method.slerp +/// [`rotation`]: https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html#structfield.rotation +/// [`Transform`]: https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html +/// [`Quat::slerp()`]: https://docs.rs/bevy/0.12.0/bevy/math/struct.Quat.html#method.slerp /// [top-level `lens` module documentation]: crate::lens #[derive(Debug, Copy, Clone, PartialEq)] pub struct TransformRotationLens { @@ -165,7 +165,7 @@ impl Lens for TransformRotationLens { /// See the [top-level `lens` module documentation] for a comparison of rotation /// lenses. /// -/// [`Transform`]: https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html +/// [`Transform`]: https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html /// [top-level `lens` module documentation]: crate::lens #[derive(Debug, Copy, Clone, PartialEq)] pub struct TransformRotateXLens { @@ -192,7 +192,7 @@ impl Lens for TransformRotateXLens { /// See the [top-level `lens` module documentation] for a comparison of rotation /// lenses. /// -/// [`Transform`]: https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html +/// [`Transform`]: https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html /// [top-level `lens` module documentation]: crate::lens #[derive(Debug, Copy, Clone, PartialEq)] pub struct TransformRotateYLens { @@ -219,7 +219,7 @@ impl Lens for TransformRotateYLens { /// See the [top-level `lens` module documentation] for a comparison of rotation /// lenses. /// -/// [`Transform`]: https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html +/// [`Transform`]: https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html /// [top-level `lens` module documentation]: crate::lens #[derive(Debug, Copy, Clone, PartialEq)] pub struct TransformRotateZLens { @@ -250,7 +250,7 @@ impl Lens for TransformRotateZLens { /// /// This method panics if the `axis` vector is not normalized. /// -/// [`Transform`]: https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html +/// [`Transform`]: https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html /// [top-level `lens` module documentation]: crate::lens #[derive(Debug, Copy, Clone, PartialEq)] pub struct TransformRotateAxisLens { @@ -271,8 +271,8 @@ impl Lens for TransformRotateAxisLens { /// A lens to manipulate the [`scale`] field of a [`Transform`] component. /// -/// [`scale`]: https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html#structfield.scale -/// [`Transform`]: https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html +/// [`scale`]: https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html#structfield.scale +/// [`Transform`]: https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html #[derive(Debug, Copy, Clone, PartialEq)] pub struct TransformScaleLens { /// Start value of the scale. @@ -290,8 +290,8 @@ impl Lens for TransformScaleLens { /// A lens to manipulate the [`position`] field of a UI [`Style`] component. /// -/// [`position`]: https://docs.rs/bevy/0.11.0/bevy/ui/struct.Style.html#structfield.position -/// [`Style`]: https://docs.rs/bevy/0.11.0/bevy/ui/struct.Style.html +/// [`position`]: https://docs.rs/bevy/0.12.0/bevy/ui/struct.Style.html#structfield.position +/// [`Style`]: https://docs.rs/bevy/0.12.0/bevy/ui/struct.Style.html #[cfg(feature = "bevy_ui")] #[derive(Debug, Copy, Clone, PartialEq)] pub struct UiPositionLens { @@ -344,8 +344,8 @@ impl Lens for UiBackgroundColorLens { /// A lens to manipulate the [`color`] field of a [`ColorMaterial`] asset. /// -/// [`color`]: https://docs.rs/bevy/0.11.0/bevy/sprite/struct.ColorMaterial.html#structfield.color -/// [`ColorMaterial`]: https://docs.rs/bevy/0.11.0/bevy/sprite/struct.ColorMaterial.html +/// [`color`]: https://docs.rs/bevy/0.12.0/bevy/sprite/struct.ColorMaterial.html#structfield.color +/// [`ColorMaterial`]: https://docs.rs/bevy/0.12.0/bevy/sprite/struct.ColorMaterial.html #[cfg(feature = "bevy_sprite")] #[derive(Debug, Copy, Clone, PartialEq)] pub struct ColorMaterialColorLens { @@ -369,8 +369,8 @@ impl Lens for ColorMaterialColorLens { /// A lens to manipulate the [`color`] field of a [`Sprite`] asset. /// -/// [`color`]: https://docs.rs/bevy/0.11.0/bevy/sprite/struct.Sprite.html#structfield.color -/// [`Sprite`]: https://docs.rs/bevy/0.11.0/bevy/sprite/struct.Sprite.html +/// [`color`]: https://docs.rs/bevy/0.12.0/bevy/sprite/struct.Sprite.html#structfield.color +/// [`Sprite`]: https://docs.rs/bevy/0.12.0/bevy/sprite/struct.Sprite.html #[cfg(feature = "bevy_sprite")] #[derive(Debug, Copy, Clone, PartialEq)] pub struct SpriteColorLens { diff --git a/src/lib.rs b/src/lib.rs index 5f34b1d..6aeb71f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -195,14 +195,14 @@ //! lens can also be created by implementing the trait, allowing to animate //! virtually any field of any Bevy component or asset. //! -//! [`Transform::translation`]: https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html#structfield.translation -//! [`Entity`]: https://docs.rs/bevy/0.11.0/bevy/ecs/entity/struct.Entity.html -//! [`Query`]: https://docs.rs/bevy/0.11.0/bevy/ecs/system/struct.Query.html -//! [`ColorMaterial`]: https://docs.rs/bevy/0.11.0/bevy/sprite/struct.ColorMaterial.html -//! [`Sprite`]: https://docs.rs/bevy/0.11.0/bevy/sprite/struct.Sprite.html -//! [`Style`]: https://docs.rs/bevy/0.11.0/bevy/ui/struct.Style.html -//! [`Text`]: https://docs.rs/bevy/0.11.0/bevy/text/struct.Text.html -//! [`Transform`]: https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html +//! [`Transform::translation`]: https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html#structfield.translation +//! [`Entity`]: https://docs.rs/bevy/0.12.0/bevy/ecs/entity/struct.Entity.html +//! [`Query`]: https://docs.rs/bevy/0.12.0/bevy/ecs/system/struct.Query.html +//! [`ColorMaterial`]: https://docs.rs/bevy/0.12.0/bevy/sprite/struct.ColorMaterial.html +//! [`Sprite`]: https://docs.rs/bevy/0.12.0/bevy/sprite/struct.Sprite.html +//! [`Style`]: https://docs.rs/bevy/0.12.0/bevy/ui/struct.Style.html +//! [`Text`]: https://docs.rs/bevy/0.12.0/bevy/text/struct.Text.html +//! [`Transform`]: https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html use std::time::Duration; diff --git a/src/plugin.rs b/src/plugin.rs index a4bfd7f..f31def6 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -29,11 +29,11 @@ use crate::{tweenable::ComponentTarget, Animator, AnimatorState, TweenCompleted} /// add manually the relevant systems for the exact set of components and assets /// actually animated. /// -/// [`Transform`]: https://docs.rs/bevy/0.11.0/bevy/transform/components/struct.Transform.html -/// [`Text`]: https://docs.rs/bevy/0.11.0/bevy/text/struct.Text.html -/// [`Style`]: https://docs.rs/bevy/0.11.0/bevy/ui/struct.Style.html -/// [`Sprite`]: https://docs.rs/bevy/0.11.0/bevy/sprite/struct.Sprite.html -/// [`ColorMaterial`]: https://docs.rs/bevy/0.11.0/bevy/sprite/struct.ColorMaterial.html +/// [`Transform`]: https://docs.rs/bevy/0.12.0/bevy/transform/components/struct.Transform.html +/// [`Text`]: https://docs.rs/bevy/0.12.0/bevy/text/struct.Text.html +/// [`Style`]: https://docs.rs/bevy/0.12.0/bevy/ui/struct.Style.html +/// [`Sprite`]: https://docs.rs/bevy/0.12.0/bevy/sprite/struct.Sprite.html +/// [`ColorMaterial`]: https://docs.rs/bevy/0.12.0/bevy/sprite/struct.ColorMaterial.html #[derive(Debug, Clone, Copy)] pub struct TweeningPlugin;