Skip to content

Conversation

@Sliim
Copy link

@Sliim Sliim commented Nov 16, 2023

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.

- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant