Skip to content
Snippets Groups Projects
  1. Oct 02, 2022
  2. Sep 29, 2022
  3. Sep 27, 2022
  4. Aug 12, 2022
  5. Aug 04, 2022
  6. 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.
      6a871576
  7. Jul 10, 2022
  8. Jun 14, 2022
  9. Jun 01, 2022
  10. May 31, 2022
  11. May 14, 2022
    • Alex Saveau's avatar
      Add speed modifier (#22) · 454bcd00
      Alex Saveau authored
      It needs to be built-in because otherwise you have to completely recreate the animation to change the speed.
      454bcd00
  12. Apr 23, 2022
  13. Mar 05, 2022
  14. Feb 21, 2022
  15. 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
  16. Feb 15, 2022
  17. 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
      Update the `sequence` GIF · fc8cba60
      Jerome Humbert authored
      fc8cba60
    • Jerome Humbert's avatar
      Fix non-`Once` animation playback · 11fdbe1f
      Jerome Humbert authored
      Ensure the `TweenState::Ended` is set only for `TweeningType::Once`,
      which is the only one with a finite duration, so which can end. Other
      tweening types repeat indefinitely until stopped, so have no end.
      11fdbe1f
    • Jerome Humbert's avatar
      Add `Delay` and the menu example · 4b138ffb
      Jerome Humbert authored
      4b138ffb
    • 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
  18. Jan 29, 2022
  19. Jan 28, 2022
  20. Jan 27, 2022
Loading