mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
Fixed overwrite and split plugin types.
This commit is contained in:
parent
47077ea9f3
commit
4f2ef3f3ca
1 changed files with 12 additions and 6 deletions
|
@ -463,6 +463,16 @@ var Config = new Class({
|
|||
* }
|
||||
*/
|
||||
|
||||
/**
|
||||
* @const {any} Phaser.Boot.Config#installGlobalPlugins - [description]
|
||||
*/
|
||||
this.installGlobalPlugins = [];
|
||||
|
||||
/**
|
||||
* @const {any} Phaser.Boot.Config#installScenePlugins - [description]
|
||||
*/
|
||||
this.installScenePlugins = [];
|
||||
|
||||
var plugins = GetValue(config, 'plugins', null);
|
||||
var defaultPlugins = DefaultPlugins.DefaultScene;
|
||||
|
||||
|
@ -475,7 +485,8 @@ var Config = new Class({
|
|||
}
|
||||
else if (IsPlainObject(plugins))
|
||||
{
|
||||
this.installPlugins = GetFastValue(plugins, 'install', []);
|
||||
this.installGlobalPlugins = GetFastValue(plugins, 'global', []);
|
||||
this.installScenePlugins = GetFastValue(plugins, 'scene', []);
|
||||
|
||||
if (Array.isArray(plugins.default))
|
||||
{
|
||||
|
@ -493,11 +504,6 @@ var Config = new Class({
|
|||
*/
|
||||
this.defaultPlugins = defaultPlugins;
|
||||
|
||||
/**
|
||||
* @const {any} Phaser.Boot.Config#installPlugins - [description]
|
||||
*/
|
||||
this.installPlugins = GetValue(config, 'plugins.install', []);
|
||||
|
||||
// Default / Missing Images
|
||||
var pngPrefix = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg';
|
||||
|
||||
|
|
Loading…
Reference in a new issue