diff --git a/src/core/index.js b/src/core/index.js index b67c15a..dcbf19d 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -80,16 +80,6 @@ } return new core.CanvasRenderer(width, height, options); - }, - - Stage: function () - { - window.console.warn("You don't need to use a PIXI Stage any more, you can simply render any container"); - return new core.Container(); - }, - - SpriteBatch: function () { - window.console.warn("SpriteBatch doesn't exist any more, please use the new ParticleContainer instead"); } }; diff --git a/src/core/index.js b/src/core/index.js index b67c15a..dcbf19d 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -80,16 +80,6 @@ } return new core.CanvasRenderer(width, height, options); - }, - - Stage: function () - { - window.console.warn("You don't need to use a PIXI Stage any more, you can simply render any container"); - return new core.Container(); - }, - - SpriteBatch: function () { - window.console.warn("SpriteBatch doesn't exist any more, please use the new ParticleContainer instead"); } }; diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index e3c6b54..96e06db 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -510,11 +510,6 @@ } }; -Sprite.prototype.setTexture = function () -{ - window.console.warn('setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture; '); -}; - // some helper functions.. /** diff --git a/src/core/index.js b/src/core/index.js index b67c15a..dcbf19d 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -80,16 +80,6 @@ } return new core.CanvasRenderer(width, height, options); - }, - - Stage: function () - { - window.console.warn("You don't need to use a PIXI Stage any more, you can simply render any container"); - return new core.Container(); - }, - - SpriteBatch: function () { - window.console.warn("SpriteBatch doesn't exist any more, please use the new ParticleContainer instead"); } }; diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index e3c6b54..96e06db 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -510,11 +510,6 @@ } }; -Sprite.prototype.setTexture = function () -{ - window.console.warn('setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture; '); -}; - // some helper functions.. /** diff --git a/src/deprecation.js b/src/deprecation.js new file mode 100644 index 0000000..0131b6b --- /dev/null +++ b/src/deprecation.js @@ -0,0 +1,37 @@ +var core = require('./core'), + math = core.math, + // plugins: + extras = require('./extras'), + filters = require('./filters'), + interaction = require('./interaction'), + loaders = require('./loaders'), + spine = require('./spine'), + text = require('./text'); + +core.Stage = function () +{ + window.console.warn("You don't need to use a PIXI Stage any more, you can simply render any container"); + return new core.Container(); +}; + +core.SpriteBatch = function () +{ + window.console.warn("SpriteBatch doesn't exist any more, please use the new ParticleContainer instead"); +}; + +core.Sprite.prototype.setTexture = function () +{ + window.console.warn('setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture; '); +}; + +text.BitmapText.prototype.setText = function () +{ + window.console.warn(" setText is now deprecated, please use the text property, e.g : myBitmapText.text = 'my text'; "); +}; + +text.Text.prototype.setText = function () +{ + window.console.warn(" setText is now deprecated, please use the text property, e.g : myText.text = 'my text'; "); +}; + +module.exports = {}; diff --git a/src/core/index.js b/src/core/index.js index b67c15a..dcbf19d 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -80,16 +80,6 @@ } return new core.CanvasRenderer(width, height, options); - }, - - Stage: function () - { - window.console.warn("You don't need to use a PIXI Stage any more, you can simply render any container"); - return new core.Container(); - }, - - SpriteBatch: function () { - window.console.warn("SpriteBatch doesn't exist any more, please use the new ParticleContainer instead"); } }; diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index e3c6b54..96e06db 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -510,11 +510,6 @@ } }; -Sprite.prototype.setTexture = function () -{ - window.console.warn('setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture; '); -}; - // some helper functions.. /** diff --git a/src/deprecation.js b/src/deprecation.js new file mode 100644 index 0000000..0131b6b --- /dev/null +++ b/src/deprecation.js @@ -0,0 +1,37 @@ +var core = require('./core'), + math = core.math, + // plugins: + extras = require('./extras'), + filters = require('./filters'), + interaction = require('./interaction'), + loaders = require('./loaders'), + spine = require('./spine'), + text = require('./text'); + +core.Stage = function () +{ + window.console.warn("You don't need to use a PIXI Stage any more, you can simply render any container"); + return new core.Container(); +}; + +core.SpriteBatch = function () +{ + window.console.warn("SpriteBatch doesn't exist any more, please use the new ParticleContainer instead"); +}; + +core.Sprite.prototype.setTexture = function () +{ + window.console.warn('setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture; '); +}; + +text.BitmapText.prototype.setText = function () +{ + window.console.warn(" setText is now deprecated, please use the text property, e.g : myBitmapText.text = 'my text'; "); +}; + +text.Text.prototype.setText = function () +{ + window.console.warn(" setText is now deprecated, please use the text property, e.g : myText.text = 'my text'; "); +}; + +module.exports = {}; diff --git a/src/index.js b/src/index.js index f864027..e3622fb 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,5 @@ -var core = module.exports = require('./core'); +var core = require('./core'), + deprecation = require('./deprecation'); // plugins: core.extras = require('./extras'); @@ -7,3 +8,5 @@ core.loaders = require('./loaders'); core.spine = require('./spine'); core.text = require('./text'); + +module.exports = core; diff --git a/src/core/index.js b/src/core/index.js index b67c15a..dcbf19d 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -80,16 +80,6 @@ } return new core.CanvasRenderer(width, height, options); - }, - - Stage: function () - { - window.console.warn("You don't need to use a PIXI Stage any more, you can simply render any container"); - return new core.Container(); - }, - - SpriteBatch: function () { - window.console.warn("SpriteBatch doesn't exist any more, please use the new ParticleContainer instead"); } }; diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index e3c6b54..96e06db 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -510,11 +510,6 @@ } }; -Sprite.prototype.setTexture = function () -{ - window.console.warn('setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture; '); -}; - // some helper functions.. /** diff --git a/src/deprecation.js b/src/deprecation.js new file mode 100644 index 0000000..0131b6b --- /dev/null +++ b/src/deprecation.js @@ -0,0 +1,37 @@ +var core = require('./core'), + math = core.math, + // plugins: + extras = require('./extras'), + filters = require('./filters'), + interaction = require('./interaction'), + loaders = require('./loaders'), + spine = require('./spine'), + text = require('./text'); + +core.Stage = function () +{ + window.console.warn("You don't need to use a PIXI Stage any more, you can simply render any container"); + return new core.Container(); +}; + +core.SpriteBatch = function () +{ + window.console.warn("SpriteBatch doesn't exist any more, please use the new ParticleContainer instead"); +}; + +core.Sprite.prototype.setTexture = function () +{ + window.console.warn('setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture; '); +}; + +text.BitmapText.prototype.setText = function () +{ + window.console.warn(" setText is now deprecated, please use the text property, e.g : myBitmapText.text = 'my text'; "); +}; + +text.Text.prototype.setText = function () +{ + window.console.warn(" setText is now deprecated, please use the text property, e.g : myText.text = 'my text'; "); +}; + +module.exports = {}; diff --git a/src/index.js b/src/index.js index f864027..e3622fb 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,5 @@ -var core = module.exports = require('./core'); +var core = require('./core'), + deprecation = require('./deprecation'); // plugins: core.extras = require('./extras'); @@ -7,3 +8,5 @@ core.loaders = require('./loaders'); core.spine = require('./spine'); core.text = require('./text'); + +module.exports = core; diff --git a/src/text/BitmapText.js b/src/text/BitmapText.js index 996bdc5..898b468 100644 --- a/src/text/BitmapText.js +++ b/src/text/BitmapText.js @@ -341,9 +341,4 @@ this.containerUpdateTransform(); }; -BitmapText.prototype.setText = function () -{ - window.console.warn(" setText is now deprecated, please use the text property, e.g : myBitmapText.text = 'my text'; "); -}; - BitmapText.fonts = {}; diff --git a/src/core/index.js b/src/core/index.js index b67c15a..dcbf19d 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -80,16 +80,6 @@ } return new core.CanvasRenderer(width, height, options); - }, - - Stage: function () - { - window.console.warn("You don't need to use a PIXI Stage any more, you can simply render any container"); - return new core.Container(); - }, - - SpriteBatch: function () { - window.console.warn("SpriteBatch doesn't exist any more, please use the new ParticleContainer instead"); } }; diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index e3c6b54..96e06db 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -510,11 +510,6 @@ } }; -Sprite.prototype.setTexture = function () -{ - window.console.warn('setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture; '); -}; - // some helper functions.. /** diff --git a/src/deprecation.js b/src/deprecation.js new file mode 100644 index 0000000..0131b6b --- /dev/null +++ b/src/deprecation.js @@ -0,0 +1,37 @@ +var core = require('./core'), + math = core.math, + // plugins: + extras = require('./extras'), + filters = require('./filters'), + interaction = require('./interaction'), + loaders = require('./loaders'), + spine = require('./spine'), + text = require('./text'); + +core.Stage = function () +{ + window.console.warn("You don't need to use a PIXI Stage any more, you can simply render any container"); + return new core.Container(); +}; + +core.SpriteBatch = function () +{ + window.console.warn("SpriteBatch doesn't exist any more, please use the new ParticleContainer instead"); +}; + +core.Sprite.prototype.setTexture = function () +{ + window.console.warn('setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture; '); +}; + +text.BitmapText.prototype.setText = function () +{ + window.console.warn(" setText is now deprecated, please use the text property, e.g : myBitmapText.text = 'my text'; "); +}; + +text.Text.prototype.setText = function () +{ + window.console.warn(" setText is now deprecated, please use the text property, e.g : myText.text = 'my text'; "); +}; + +module.exports = {}; diff --git a/src/index.js b/src/index.js index f864027..e3622fb 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,5 @@ -var core = module.exports = require('./core'); +var core = require('./core'), + deprecation = require('./deprecation'); // plugins: core.extras = require('./extras'); @@ -7,3 +8,5 @@ core.loaders = require('./loaders'); core.spine = require('./spine'); core.text = require('./text'); + +module.exports = core; diff --git a/src/text/BitmapText.js b/src/text/BitmapText.js index 996bdc5..898b468 100644 --- a/src/text/BitmapText.js +++ b/src/text/BitmapText.js @@ -341,9 +341,4 @@ this.containerUpdateTransform(); }; -BitmapText.prototype.setText = function () -{ - window.console.warn(" setText is now deprecated, please use the text property, e.g : myBitmapText.text = 'my text'; "); -}; - BitmapText.fonts = {}; diff --git a/src/text/Text.js b/src/text/Text.js index 000815b..4e3bdf2 100644 --- a/src/text/Text.js +++ b/src/text/Text.js @@ -553,8 +553,3 @@ this._texture.destroy(destroyBaseTexture === undefined ? true : destroyBaseTexture); }; - -Text.prototype.setText = function () -{ - window.console.warn(" setText is now deprecated, please use the text property, e.g : myText.text = 'my text'; "); -};