Sebastian Warmbrunn
968c0a3aec
Add typedef for new scene config option mapAdd
...
Also add a description for mapAdd and map config options.
2018-04-09 21:32:19 +02:00
Sebastian Warmbrunn
593245742e
Add a config to merge keys into scene InjectionMap
...
This way the defaults of the scene injection map are kept and the user
is able to merge with those defaults.
2018-04-09 21:16:45 +02:00
Richard Davey
ca2097f4e2
Recoded how the boot data and processing works to allow for more flexibility when setting-up scenes. Updates #3470
2018-04-09 12:57:47 +01:00
Richard Davey
66a9bec9bb
Only set data if it's not undefined.
2018-04-09 12:57:03 +01:00
Richard Davey
bf368ab70b
ScenePlugin.restart allows you to restart the current Scene. It's the same result as calling ScenePlugin.start
without any arguments, but is more clear.
2018-04-09 12:56:28 +01:00
Richard Davey
a0dcfdd3fc
Merge pull request #3470 from pixelhijack/fix-issue-3363
...
[ISSUE #3363 ] Phaser Scene - passing data to scene init & create methods
2018-04-09 10:20:57 +01:00
Eirik S Korsnes
798356cb64
jsdoc: fix correct type reference on Scene#load
2018-04-04 20:19:21 +02:00
Richard Davey
c1e5aa72ef
Added jsdocs for TS defs export
2018-04-03 15:08:48 +01:00
Chris Andrew
f3675b6085
Added a missing full stop. 🚀
2018-04-02 18:43:41 +01:00
Chris Andrew
e047977f52
Documented the ScenePlugin class.
2018-04-02 18:29:23 +01:00
Chris Andrew
7eb0342663
Documented the SceneManager.
2018-04-02 18:01:17 +01:00
Richard Davey
d8e378b052
Updated comments
2018-03-30 17:01:29 +01:00
Richard Davey
89c963c19c
Ignore consts
2018-03-30 14:38:58 +01:00
pixelhijack
e728f3a1b9
[ISSUE #3363 ] Phaser Scene - passing data to scene init & create methods
2018-03-29 21:40:32 +02:00
Richard Davey
91008232ad
jsdoc fixes
2018-03-29 13:12:07 +01:00
Richard Davey
f1e646c9ee
jsdoc fixes
2018-03-28 15:39:57 +01:00
orblazer
ed1f2a7011
Fix wrong types
2018-03-22 13:51:30 +01:00
orblazer
dcd80375c0
Fix "object" types on Renderer and Scene
2018-03-21 14:41:17 +01: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
4cff464555
Fix nullable types
2018-03-20 15:36:03 +01:00
Richard Davey
4fe6a25117
Added jsdoc data types
2018-03-19 11:25:46 +00:00
orblazer
6a4dd8db8f
Update JSDoc on Renderer and Scene
2018-03-19 01:59:59 +01:00
Arkadiusz Buras
e981932db1
Remove scene key in SceneManager
2018-03-17 13:42:42 +01:00
Richard Davey
a524dc44b0
Expose constants. Fix #3387
2018-03-16 13:29:30 +00:00
Richard Davey
a6d742227c
Merge pull request #3394 from stuff/patch-2
...
pass data to the manager queue when starting a scene
2018-03-16 13:00:25 +00:00
Nicolas Challeil
53de26e572
pass data to the manager queue
2018-03-14 23:52:00 +01:00
samme
55ccf7f026
Remove unused callbacks in createSceneFromObject
...
Phaser never calls 'shutdown' or 'destroy' methods.
2018-03-14 13:28:04 -07:00
Richard Davey
7adcb66267
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-03-09 15:42:27 +00:00
Richard Davey
db3112de31
The SceneManager.render will now render a Scene as long as it's in a LOADING state or higher. Before it would only render RUNNING scenes, but this precluded those that were loading assets.
2018-03-09 15:33:07 +00:00
migiyubi
decbe18705
Make scene restartable
2018-03-08 20:27:22 +09:00
Richard Davey
1e6bfe660f
Removed accidental overwrite of the object key #3185
2018-03-05 16:58:59 +00:00
Richard Davey
5168300463
The SceneManager now employs a new queue for all pending Scenes, creating them and booting them in strict sequence. This should prevent errors where Scenes were unable to reference other Scenes further down the boot list in their create functions. Fix #3314
2018-03-05 14:48:30 +00:00
Richard Davey
7c16368d3e
SceneManager uses new internal boot queue.
2018-03-05 14:11:42 +00:00
Richard Davey
ae1c91cf6a
eslint fixes
2018-03-05 01:40:11 +00:00
Richard Davey
95d85576c9
SceneManager.moveAbove and moveBelow added.
...
SceneManager.moveAbove will move a Scene to be directly above another Scene in the Scenes list. This is also exposed in the ScenePlugin.
SceneManager.moveBelow will move a Scene to be directly below another Scene in the Scenes list. This is also exposed in the ScenePlugin.
2018-03-02 18:25:44 +00:00
Richard Davey
9a6e6265e8
The SceneManager no longer renders a Scene unless it is visible AND either running or paused. This now skips Scenes that are in an init
state.
2018-03-02 17:48:45 +00:00
Richard Davey
a993251dea
ScenePlugin.swapPosition now allows you to use it to swap the positions of any two Scenes. Before the change it only allowed you to swap the position of the calling Scene and another one, but a new optional keyB
argument opens this up.
2018-03-02 17:47:01 +00:00
Richard Davey
98930de3a8
The SceneManager has a new method: remove
which allows you to remove and destroy a Scene, freeing up the Scene key for use by future scenes and potentially clearing the Scene from active memory for gc.
2018-03-02 03:50:55 +00:00
Richard Davey
63e5681073
Merge pull request #3287 from gaudeon/master
...
BugFix for ScenePlugin.launch, data now passed to queued scenes
2018-02-28 20:47:51 +00:00
srobertson421
66e881c7eb
swapped queue loop to use _queue prop rather than queueLength var
2018-02-28 12:25:43 -08:00
Richard Davey
e6059f65cd
SceneManager invokes resize method on all Systems.
2018-02-28 17:18:55 +00:00
Richard Davey
e44ce76214
Scene.Systems resize handler added.
2018-02-28 17:18:40 +00:00
Travis Chase
ca0366bfc8
launching a scene that is not running will now pass data through when start op is called for this scene in the scene process queue
2018-02-26 22:04:58 -07:00
AleBles
697d096221
Added data to ScenePlugin, fixes #3180
2018-02-22 12:34:19 +01:00
Rafael Barbosa Lopes
7d64c12e66
Removed unused queue property in ScenePlugin
.
2018-02-19 10:00:52 -03:00
Richard Davey
d23688c3e4
Added eslint fixes and overrides
2018-02-16 18:44:07 +00:00
Richard Davey
8f4a1012fd
Updated jsdocs.
2018-02-13 01:39:22 +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
b6b8f70550
DisplayList now just extends List and removed the Plugin, as it acts as its own plugin now.
2018-02-12 16:59:57 +00:00