Commit graph

46 commits

Author SHA1 Message Date
Richard Davey
7aa46657c2 Tidying up jsdocs and changing float to number 2018-06-26 23:19:14 +01:00
Chris Andrew
4b5ab4e217 Documented most of the remaining PathFollower descriptions. 2018-06-21 13:19:52 +01:00
Richard Davey
e5fbcd5574 Calling Tween.play on a tween created via TweenManager.create wouldn't actually start playback until the tween was first added to the Tween Manager. Now, calling play will have it automatically add itself to the Tween Manager if it's not already in there. Fix #3763 2018-06-19 12:28:29 +01:00
cyantree
e578cd55fa Fixed endless loop in TweenManager.getTweensOf() 2018-06-01 01:25:46 +02:00
Richard Davey
350cb037b7 All systems now register themselves with the new PluginCache 2018-05-15 12:51:50 +01:00
Richard Davey
be330e609e Moved PluginManager to new location 2018-05-10 17:14:33 +01:00
Richard Davey
1be486fab4 destroy only called once, no matter how many times the Scene restarts. Fix #3581 2018-04-17 12:25:45 +01:00
Richard Davey
ce7d67297f Moving from 3.4.1 to 3.5.0 so we can release new camera fx and scene transitions 2018-04-15 12:44:47 +01:00
Richard Davey
6b2307594a Scene plugin flow overhaul
Every Plugin has been updated to correctly follow the same flow through the Scene lifecycle. Instead of listening for the Scene 'boot' event, which is only dispatched once (when the Scene is first created), they will now listen for the Scene 'start' event, which occurs every time the Scene is started. All plugins now consistently follow the same Shutdown and Destroy patterns too, meaning they tidy-up after themselves on a shutdown, not just a destroy. Overall, this change means that there should be less issues when returning to previously closed Scenes, as the plugins will restart themselves properly.
2018-04-13 17:12:17 +01:00
Antriel
47dc14079b fix Timeline#destroy 2018-04-10 14:19:51 +02:00
Richard Davey
833355a9a4 Tween.resume will now call Tween.play on a tween that was paused due to its config object, not as a result of having its paused method called. Fix #3452 2018-04-09 13:25:20 +01:00
Travis O'Neal
edb81c9096 Tween.Restart adds Tween back to the active list for the TweenManager to properly process and replay 2018-03-30 11:24:36 -04:00
Richard Davey
06998276ec Removed stict mode warning 2018-03-28 16:00:19 +01:00
Richard Davey
747f09af86 jsdoc fixes 2018-03-28 15:04:09 +01:00
Richard Davey
b3965fb5a2 Added TweenData type def 2018-03-21 16:23:48 +00:00
Richard Davey
a2352f2049 Renamed tween config defaults 2018-03-21 15:17:53 +00:00
orblazer
7fba122321 Fix "any" types 2018-03-20 17:15:49 +01:00
orblazer
44103dc475 Fix remaining multiple types 2018-03-20 16:12:42 +01:00
orblazer
454849d67d Update JSDoc on Tweens and Utils 2018-03-19 02:07:03 +01:00
Richard Davey
4ab98eb492 The TweenManager will now check the state of a tween before playing it. If not in a pending state it will be skipped. This allows you to stop a tween immediately after creating it and not have it play through once anyway. Fix #3405 2018-03-16 14:31:49 +00:00
Richard Davey
a524dc44b0 Expose constants. Fix #3387 2018-03-16 13:29:30 +00:00
Allan Reyes
a08c75bb06 Delegate Timeline#makeActive to TweenManager
This fixes a bug when calling Timeline#resetTweens() while the tweens
are pending removal or completed. Delegating the #makeActive method
here was chosen to:
- Follow "tell, don't ask" (pragprog.com/articles/tell-dont-ask)
- Prevent an additional branch conditional in Tween.js
- Prevent a Law of Demeter violation, e.g.

        // src/tweens/tween/Tween.js
        if (this.parentIsTimeline) // "asking"
        {
            this.parent.manager.makeActive(this); // LoD violation
        }
        else
        {
            this.parent.makeActive(this);
        }
2018-03-12 09:31:00 -07:00
Richard Davey
a89be7abc5 Tween.complete will allow you to flag a tween as being complete, no matter what stage it is at. If an onComplete callback has been defined it will be invoked. You can set an optional delay before this happens (thanks @Jerenaux for the idea)
Fix #3280
2018-02-28 21:14:56 +00:00
Richard Davey
997338c35b jsdoc fixes 2018-02-22 01:52:11 +00:00
Richard Davey
147dec11ab Tween.updateTweenData will now check to see if the Tween target still exists before trying to update its properties. 2018-02-22 01:50:36 +00:00
Richard Davey
e1554c34d6 eslint fixes 2018-02-16 18:07:49 +00:00
Richard Davey
6a9ac033e2 Fixed call to TweenManager.makeActive. Fix #3219 2018-02-13 21:55:07 +00:00
Richard Davey
eec13883e0 Removed rogue Tween emit calls. Fix #3222 2018-02-13 21:45:21 +00:00
Richard Davey
2813ac8162 Moved PluginManager and merged configs into single root file for easier changing. 2018-02-12 23:03:48 +00:00
Richard Davey
d1f5f8a82b Added jsdocs 2018-02-12 16:01:21 +00:00
Greg
e9897c31f9 #3190 Tweens/Timeline parent.makeActive missing 2018-02-10 20:45:32 -05:00
Richard Davey
2dda99c1ab Added jsdocs 2018-02-10 17:51:02 +00:00
Richard Davey
5f39206f35 Added jsdocs 2018-02-10 17:40:40 +00:00
Richard Davey
da88485bc7 Added jsdocs 2018-02-10 17:14:35 +00:00
Richard Davey
38b6d2834b Added jsdocs 2018-02-10 17:11:36 +00:00
Richard Davey
2ece55c28e Renamed folder to match namespace 2018-02-10 14:56:08 +00:00
Richard Davey
bc87630d61 Added jsdocs. 2018-02-09 18:03:39 +00:00
Richard Davey
2a86400a28 Added in jsdocs 2018-01-31 13:54:44 +00:00
Antriel
975b2b59ca Fixed Tween.resume/pause. 2018-01-26 10:25:13 +01:00
Richard Davey
2deb9edc9e Plugins now check to see if the Scene is already booted and adapt accordingly. 2018-01-18 14:00:31 +00:00
Richard Davey
5a333bc2fd Updated to new Plugin format, removed injection and mapping 2018-01-18 05:18:09 +00:00
Richard Davey
f9a7939812 Lots of work migrating to the new plugin system, fixing references and exposing on the namespace 2018-01-16 22:28:29 +00:00
Richard Davey
8e07320596 Migrating to plugins 2018-01-16 19:49:13 +00:00
Richard Davey
7e5163adf0 Merged source. 2018-01-16 16:43:38 +00:00
Richard Davey
9a2eb0eb58 Merged source. 2018-01-16 16:37:34 +00:00
Richard Davey
d8f1ba03e9 Moved repository location 2018-01-09 21:43:56 +00:00