Richard Davey
468bf7821d
Updated copyright year
2023-01-02 17:36:27 +00:00
Richard Davey
59fbcc5ca3
Updated copyright year
2022-02-28 14:29:51 +00:00
Richard Davey
496b928c61
Fixed eslint issues
2021-09-21 11:38:33 +01:00
xiamidaxia
9d2374c4a5
Fix install scene plugin #5765
2021-06-30 17:29:25 +08:00
Richard Davey
033efd8bb8
Use var and pass mapKey to constructor
2021-03-26 11:11:21 +00:00
Richard Davey
baa5fdfd8c
ScenePlugin.pluginKey
is a new string-based property, set by the PluginManager
that contains the key of the plugin with the Scene Systems.
2021-03-26 10:28:26 +00:00
Richard Davey
da96d2b26f
Fixed namespace
2020-11-23 11:31:23 +00:00
Richard Davey
02c34cd64e
Replace integer with number
2020-11-23 10:22:13 +00:00
Richard Davey
7e30ff32be
Phaser.Scene.renderer
is a new property available in every Phaser.Scene that gives you a reference to the renderer, either Canvas or WebGL.
2020-10-27 13:42:45 +00:00
Richard Davey
07865a5823
Final set of namespace changes. Fix #5062
2020-09-01 20:28:42 +01:00
Jason Kwok
bee54280ce
Fixed this
return types for Phaser.Plugins.PluginManager
2020-01-30 23:48:56 +08:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
Richard Davey
3b05f3bcf7
Removed BasePlugin properties #4488
2019-10-02 16:32:04 +01:00
Richard Davey
9e3efb4ff8
Merge pull request #4488 from samme/misc/plugins
...
Remove BasePlugin#boot; and plugins docs updates
2019-10-02 16:25:34 +01:00
Richard Davey
75968a1ab0
PluginManager.removeGameObject
is a new method that allows you to de-register custom Game Object types from the global Game Object Factory and/or Creator. Useful for when custom plugins are destroyed and need to clean-up after themselves.
2019-07-17 14:34:00 +01:00
samme
6bda5739bc
Warn when plugin entry is missing plugin
property
...
#4533
2019-05-21 13:29:58 -07:00
Richard Davey
c91ed91ce3
License link update
2019-05-10 16:15:04 +01:00
Richard Davey
15abc3824a
Plugins Types
2019-05-09 12:35:33 +01:00
samme
34ec998ea2
Docs for BasePlugin
...
Differentiate the nonshared properties
2019-04-21 11:12:13 -07:00
samme
4355c1a621
Remove BasePlugin#boot
2019-04-21 11:08:40 -07:00
samme
5058b337bd
Docs for scene events
2019-04-21 11:08:03 -07:00
Richard Davey
c85648e06a
The PluginManager.installScenePlugin
method has a new optional boolean parameter fromLoader
which controls if the plugin is coming in from the result of a Loader operation or not. If it is, it no longer throws a console warning if the plugin already exists. This fixes an issue where if you return to a Scene that loads a Scene Plugin it would throw a warning and then not install the plugin to the Scene.
2019-02-28 12:24:41 +00:00
Richard Davey
42cb39749f
Matter and Snapshot typedefs
2019-02-13 15:22:29 +00:00
Richard Davey
eb9ed3463f
Lots of namespace and jsdoc fixes
2019-02-01 18:02:58 +00:00
Richard Davey
1eccff1e3b
Fixed jsdoc links and markdown bullet lists
2019-01-18 15:20:56 +00:00
Richard Davey
bc962c25dc
All listeners use the new Events
2019-01-18 13:41:43 +00:00
Richard Davey
aa341854c7
Happy New Year
2019-01-15 16:20:22 +00:00
Richard Davey
5da77075f4
PluginManager.install
returns null
if the plugin failed to install in all cases.
2018-10-23 13:28:56 +01:00
Richard Davey
4b1c762296
Updated @memberOf to @memberof
2018-10-10 10:49:13 +01:00
Richard Davey
bddca4c1de
Added all of the DOM components the Scale Manager needs
2018-10-09 18:13:56 +01:00
Richard Davey
7765496b19
Moved FB plugin behind build flag
2018-08-23 18:10:20 +01:00
Richard Davey
b25ff9e065
Moved Camera3D to optional plugin
...
Also included build flag to allow it to be compiled into the standard lib if required (saves a bunch of KB in duplicated classes)
2018-08-23 15:30:21 +01:00
Richard Davey
beb286297c
Camera3D Plugin moved out of the main src folder to optional plugin
2018-08-23 13:18:25 +01:00
Richard Davey
2d91d4a26b
You can now access the Game instance directly from a Scene using this.game
2018-08-07 11:19:20 +01:00
Richard Davey
a29aba0a11
Merge pull request #3859 from samme/feature/plugin-data
...
Pass `data` value to global plugins
2018-07-31 11:39:36 +01:00
Richard Davey
063a432ec9
Destroy will now clear out all custom plugins. Fix #3856
2018-07-31 10:28:36 +01:00
Richard Davey
75db482ec6
Added destroyCustomPlugin and destroyCorePlugin
2018-07-31 10:28:09 +01:00
Richard Davey
c65e3c7428
Added FB Instant Games Plugin to core (will prepare for moving to unique build once feature complete)
2018-07-27 08:33:51 +01:00
samme
4c23359fd8
Pass data
value to global plugins
2018-07-23 10:51:00 -07:00
Rafael Barbosa Lopes
904b6c13da
Delete console.log
call on PluginManager.
2018-05-26 14:01:07 -03:00
Richard Davey
a8f1b23b73
Fixed jsdoc errors
2018-05-25 17:20:50 +01:00
Chris Andrew
f95b35eae7
Finished off descriptions for Data, Plugins and Sound.
2018-05-23 08:09:24 +01:00
Richard Davey
0b1d32b571
New registerFileType argument, new Global Plugin mapping and createEntry method
...
* PluginManager.registerFileType has a new property `addToScene` which allows you to inject the new file type into the LoaderPlugin of the given Scene. You could use this to add the file type into the Scene in which it was loaded.
* PluginManager.install has a new property `mapping`. This allows you to give a Global Plugin a property key, so that it is automatically injected into any Scenes as a Scene level instance. This allows you to have a single global plugin running in the PluginManager, that is injected into every Scene automatically.
* PluginManager.createEntry is a new private method to create a plugin entry and return it. This avoids code duplication in several other methods, which now use this instead.
2018-05-18 18:43:27 +01:00
Richard Davey
4c1703768d
Docs update
2018-05-18 17:37:20 +01:00
Richard Davey
32818ee9cd
jsdoc fixes
2018-05-17 15:10:23 +01:00
Richard Davey
919676ae10
PluginManager.destroy didn't reference the plugin correctly, throwing an Uncaught TypeError if you tried to destroy a game instance. Fix #3668
2018-05-17 12:16:14 +01:00
Richard Davey
9f7d3bf9ca
Allowed get
to return the class and added autoStart boolean
2018-05-16 14:35:45 +01:00
Richard Davey
6d1166a9c2
lint fixes
2018-05-15 14:28:27 +01:00
Richard Davey
3043fd52e6
Added jsdocs and unified the boot process
2018-05-15 14:19:56 +01:00
Richard Davey
ef9ab052c7
PluginManager updates to handle Scene system injection, PluginCache use and registering new game objects and file types
2018-05-15 12:52:18 +01:00