Skip to content
Snippets Groups Projects
  1. Aug 04, 2022
  2. Aug 03, 2022
    • Alex Saveau's avatar
      Support running an animation N times (#19) · 6a871576
      Alex Saveau authored
      Remove `TweeningType` and split its functionalities between a new `RepeatCount`
      controlling the number of repeats of an animation on one hand, and
      `RepeatStrategy` controlling the way an animation restarts after a loop ended
      on the other hand. This allows more granular control on the type of playback.
      
      Remove the `tweening_type` parameter from `Tween<T>::new()` and replace it with
      builder methods `with_repeat_count()` and `with_repeat_strategy()`.
      
      Remove `is_looping()` from all tweenables, which was not implemented for most
      of them anyway.
  3. Jul 10, 2022
  4. Jun 14, 2022
  5. Jun 01, 2022
  6. May 31, 2022
  7. Apr 23, 2022
  8. Mar 05, 2022
  9. Feb 16, 2022
    • Jerome Humbert's avatar
      Add event `user_data` and improve docs · 8dcd3d27
      Jerome Humbert authored
      - Add `TweenCompleted::user_data` to help identify the tween which
        raised the event.
      - Improved several docs.
      - Update CHANGELOG.
      - Update README with mention of events and callbacks.
      8dcd3d27
    • Jerome Humbert's avatar
      Add `TweenCompleted` event · e31e76dc
      Jerome Humbert authored
      Add a mechanism to `Tween<T>` to raise a Bevy event once the tween
      completed. The event raising can be enabled with `set_completed_event()`
      and `with_completed_event()`. The `TweenCompleted` event contains the
      `Entity` on which the `Animator<T>` or `AssetAnimator<T>` owning the
      tween are attached.
      
      Update the `sequence` example to show how to use that new event
      mechanism.
      e31e76dc
  10. Feb 12, 2022
    • Jerome Humbert's avatar
      Move predefined lenses to a public `lens` module · a9b9f6e7
      Jerome Humbert authored
      This avoids having those predefined types, which are optional, be in the
      middle of the core types.
      a9b9f6e7
    • Jerome Humbert's avatar
      `Tweenable`-based design · d3b5f1be
      Jerome Humbert authored
      Add a `Tweenable<T>` trait describing a generic animatable tween-like
      element.
      
      Expose the three types of tweenables and implement `Tweenable<T>` for
      them:
      - `Tween<T>`, a single animation
      - `Sequence<T>`, a sequence of consecutive animations
      - `Tracks<T>`, a batch of animations running in parallel
      
      Clean-up animators to hold a single top-level `Tweenable<T>` and let the
      user build any kind of animation hierarchy for themselves.
      d3b5f1be
  11. Jan 29, 2022
  12. Jan 28, 2022
Loading