FlipperAnimationManager
FlipperAnimationManager copied to clipboard
Add support for passive/active frames
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_framesAnimation properties (uint). These properties store values from the meta.txt - Add
activeAnimation property to store the animation state, updated from the UI. - Remove
total_frames_numberAnimation property (unused). - Use the
Animation::get_total_frames_numberfunction to return frames number based on the animation state (activeproperty) instead of returning thetotal_frames_numberproperty value. - Update
Animation::next_framefunction to return the next frame depending of the animation state (activeproperty). - Create
AnimationWallet::set_activefunction 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.