FlipperAnimationManager icon indicating copy to clipboard operation
FlipperAnimationManager copied to clipboard

Add support for passive/active frames

Open Sliim opened this issue 2 years ago • 0 comments

Hello,

Another contribution to support passive/active frames. By default animations are displayed only with passive frames. Active frames can be enabled (or disabled) in the animation popup via the added checkbox, or in the Tools menu to enable/disable active frames globally for all animations.

Here is major changes of this PR:

  • Add passive_frames & active_frames Animation properties (uint). These properties store values from the meta.txt
  • Add active Animation property to store the animation state, updated from the UI.
  • Remove total_frames_number Animation property (unused).
  • Use the Animation::get_total_frames_number function to return frames number based on the animation state (active property) instead of returning the total_frames_number property value.
  • Update Animation::next_frame function to return the next frame depending of the animation state (active property).
  • Create AnimationWallet::set_active function tu update state for every animations.
  • UI: Add Checkbox in animation popup to update animation state.
  • UI: Add MenuItems in Tools menu to change every animations states.

Sliim avatar Nov 16 '23 17:11 Sliim