Added Animation.IsActive.

This commit is contained in:
Sander Schobers 2020-05-23 08:20:20 +02:00
parent 3bab08a0a6
commit b434a71f00

View File

@ -67,6 +67,9 @@ func (a *Animation) Pause() {
a.active = false
}
// IsActive returns true when the animation is started (and false when it either was never started or paused)
func (a *Animation) IsActive() bool { return a.active }
// Start starts the animation (when paused or not started yet).
func (a *Animation) Start() {
if a.active {