Added Animation.IsActive.
This commit is contained in:
parent
3bab08a0a6
commit
b434a71f00
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user