diff --git a/src/core/index.js b/src/core/index.js index b2893e6..21c817a 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -64,7 +64,7 @@ * @param [options.antialias=false] {boolean} sets antialias (only applicable in chrome at the moment) * @param [options.preserveDrawingBuffer=false] {boolean} enables drawing buffer preservation, enable this if you * need to call toDataUrl on the webgl context - * @param [options.resolution=1] {number} the resolution of the renderer retina would be 2 + * @param [options.resolution=1] {number} the resolution of the renderer, retina would be 2 * @param [noWebGL=false] {boolean} prevents selection of WebGL renderer, even if such is present * * @return {WebGLRenderer|CanvasRenderer} Returns WebGL renderer if available, otherwise CanvasRenderer @@ -80,6 +80,12 @@ } 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(); } }; diff --git a/src/core/index.js b/src/core/index.js index b2893e6..21c817a 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -64,7 +64,7 @@ * @param [options.antialias=false] {boolean} sets antialias (only applicable in chrome at the moment) * @param [options.preserveDrawingBuffer=false] {boolean} enables drawing buffer preservation, enable this if you * need to call toDataUrl on the webgl context - * @param [options.resolution=1] {number} the resolution of the renderer retina would be 2 + * @param [options.resolution=1] {number} the resolution of the renderer, retina would be 2 * @param [noWebGL=false] {boolean} prevents selection of WebGL renderer, even if such is present * * @return {WebGLRenderer|CanvasRenderer} Returns WebGL renderer if available, otherwise CanvasRenderer @@ -80,6 +80,12 @@ } 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(); } }; diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index 127d3cf..626c920 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -62,12 +62,12 @@ * The tint applied to the sprite. This is a hex value. A value of 0xFFFFFF will remove any tint effect. * * @member {number} - * @default 0xFFFFFF + * @default [0xFFFFFF] */ this.tint = 0xFFFFFF; /** - * The blend mode to be applied to the sprite. Set to CONST.BLEND_MODES.NORMAL to remove any blend mode. + * The blend mode to be applied to the sprite. Apply a value of blendModes.NORMAL to reset the blend mode. * * @member {number} * @default CONST.BLEND_MODES.NORMAL; @@ -85,6 +85,7 @@ * An internal cached value of the tint. * * @member {number} + * @default [0xFFFFFF] */ this.cachedTint = 0xFFFFFF; @@ -509,6 +510,11 @@ } }; +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 b2893e6..21c817a 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -64,7 +64,7 @@ * @param [options.antialias=false] {boolean} sets antialias (only applicable in chrome at the moment) * @param [options.preserveDrawingBuffer=false] {boolean} enables drawing buffer preservation, enable this if you * need to call toDataUrl on the webgl context - * @param [options.resolution=1] {number} the resolution of the renderer retina would be 2 + * @param [options.resolution=1] {number} the resolution of the renderer, retina would be 2 * @param [noWebGL=false] {boolean} prevents selection of WebGL renderer, even if such is present * * @return {WebGLRenderer|CanvasRenderer} Returns WebGL renderer if available, otherwise CanvasRenderer @@ -80,6 +80,12 @@ } 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(); } }; diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index 127d3cf..626c920 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -62,12 +62,12 @@ * The tint applied to the sprite. This is a hex value. A value of 0xFFFFFF will remove any tint effect. * * @member {number} - * @default 0xFFFFFF + * @default [0xFFFFFF] */ this.tint = 0xFFFFFF; /** - * The blend mode to be applied to the sprite. Set to CONST.BLEND_MODES.NORMAL to remove any blend mode. + * The blend mode to be applied to the sprite. Apply a value of blendModes.NORMAL to reset the blend mode. * * @member {number} * @default CONST.BLEND_MODES.NORMAL; @@ -85,6 +85,7 @@ * An internal cached value of the tint. * * @member {number} + * @default [0xFFFFFF] */ this.cachedTint = 0xFFFFFF; @@ -509,6 +510,11 @@ } }; +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/text/BitmapText.js b/src/text/BitmapText.js index 7ccde1c..2ffd2b4 100644 --- a/src/text/BitmapText.js +++ b/src/text/BitmapText.js @@ -341,4 +341,9 @@ 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 b2893e6..21c817a 100644 --- a/src/core/index.js +++ b/src/core/index.js @@ -64,7 +64,7 @@ * @param [options.antialias=false] {boolean} sets antialias (only applicable in chrome at the moment) * @param [options.preserveDrawingBuffer=false] {boolean} enables drawing buffer preservation, enable this if you * need to call toDataUrl on the webgl context - * @param [options.resolution=1] {number} the resolution of the renderer retina would be 2 + * @param [options.resolution=1] {number} the resolution of the renderer, retina would be 2 * @param [noWebGL=false] {boolean} prevents selection of WebGL renderer, even if such is present * * @return {WebGLRenderer|CanvasRenderer} Returns WebGL renderer if available, otherwise CanvasRenderer @@ -80,6 +80,12 @@ } 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(); } }; diff --git a/src/core/sprites/Sprite.js b/src/core/sprites/Sprite.js index 127d3cf..626c920 100644 --- a/src/core/sprites/Sprite.js +++ b/src/core/sprites/Sprite.js @@ -62,12 +62,12 @@ * The tint applied to the sprite. This is a hex value. A value of 0xFFFFFF will remove any tint effect. * * @member {number} - * @default 0xFFFFFF + * @default [0xFFFFFF] */ this.tint = 0xFFFFFF; /** - * The blend mode to be applied to the sprite. Set to CONST.BLEND_MODES.NORMAL to remove any blend mode. + * The blend mode to be applied to the sprite. Apply a value of blendModes.NORMAL to reset the blend mode. * * @member {number} * @default CONST.BLEND_MODES.NORMAL; @@ -85,6 +85,7 @@ * An internal cached value of the tint. * * @member {number} + * @default [0xFFFFFF] */ this.cachedTint = 0xFFFFFF; @@ -509,6 +510,11 @@ } }; +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/text/BitmapText.js b/src/text/BitmapText.js index 7ccde1c..2ffd2b4 100644 --- a/src/text/BitmapText.js +++ b/src/text/BitmapText.js @@ -341,4 +341,9 @@ 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 e687764..000815b 100644 --- a/src/text/Text.js +++ b/src/text/Text.js @@ -175,6 +175,7 @@ * Set the copy for the text object. To split a line you can use '\n'. * * @param text {string} The copy that you would like the text to display + * @memberof Text# */ text: { get: function() @@ -552,3 +553,8 @@ 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'; "); +};