mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
The data object being sent to the Dynamic Bitmap Text callback now has a new property parent
, which is a reference to the Bitmap Text instance that owns the data object (thanks ornyth)
This commit is contained in:
parent
8d12286b01
commit
4c73be9dbd
2 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,8 @@
|
|||
|
||||
### New Features
|
||||
|
||||
* The data object being sent to the Dynamic Bitmap Text callback now has a new property `parent`, which is a reference to the Bitmap Text instance that owns the data object (thanks ornyth)
|
||||
|
||||
### Updates
|
||||
|
||||
* The Mouse Manager class has been updated to remove some commented out code and refine the `startListeners` method.
|
||||
|
|
|
@ -11,7 +11,8 @@ var Render = require('./DynamicBitmapTextRender');
|
|||
/**
|
||||
* @typedef {object} DisplayCallbackConfig
|
||||
*
|
||||
* @property {{topLeft:number, topRight:number, bottomLeft:number, bottomRight:number}} tint - The tint of the character being rendered.
|
||||
* @property {Phaser.GameObjects.DynamicBitmapText} parent - The Dynamic Bitmap Text object that owns this character being rendered.
|
||||
* @property {{topLeft:number, topRight:number, bottomLeft:number, bottomRight:number}} tint - The tint of the character being rendered. Always zero in Canvas.
|
||||
* @property {number} index - The index of the character being rendered.
|
||||
* @property {number} charCode - The character code of the character being rendered.
|
||||
* @property {number} x - The x position of the character being rendered.
|
||||
|
@ -149,6 +150,7 @@ var DynamicBitmapText = new Class({
|
|||
* @since 3.11.0
|
||||
*/
|
||||
this.callbackData = {
|
||||
parent: this,
|
||||
color: 0,
|
||||
tint: {
|
||||
topLeft: 0,
|
||||
|
|
Loading…
Reference in a new issue