missionpinball / mpf-mc

The Mission Pinball Framework Media Controller. Controls graphics, sounds, DMDs, and LCD displays in MPF.
http://missionpinball.org
MIT License
21 stars 42 forks source link

Allow animated images to persist frame in asset #416

Closed avanwinkle closed 3 years ago

avanwinkle commented 3 years ago

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 commented 3 years ago

LGTM!