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

Sound player delay, animated image start frame stills #409

Merged
merged 4 commits into from
Nov 26, 2020

Conversation

avanwinkle
Copy link
Collaborator

This PR implements the delay option for SoundPlayer from missionpinball/mpf#1541.

This PR also adds some improved behavior to animated image playback. The start_frame setting is applied to the image when playback begins—something that never occurs on images that don't play. This PR tweaks the behavior to always trigger play (thereby jumping to the correct frame) and then immediately stop animations that shouldn't play.

The result of this change is that an image animation can be created to store multiple states of an image (e.g. a progress bar) and a specific frame can be displayed without animating it.

@avanwinkle avanwinkle merged commit 32331c0 into missionpinball:dev Nov 26, 2020
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