Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow animated images to persist frame in asset #416

Merged
merged 1 commit into from
Feb 8, 2021

Conversation

avanwinkle
Copy link
Collaborator

This PR enhances the animated image asset to persist the last frame when the asset is loaded into a new widget.

When the image asset config has persist_frame: true, the first time the image asset is loaded the default start_frame will be used. On all subsequent loads, the last-used animation frame will be the starting frame.

This change is to improve the behavior of the Digital Score Reels by persisting a player's score when new balls start.

@jabdoa2
Copy link
Collaborator

jabdoa2 commented Feb 7, 2021

LGTM!

@avanwinkle avanwinkle merged commit fd6b2d5 into missionpinball:dev Feb 8, 2021
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.

2 participants