mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
3664e84e19
3 changed files with 6 additions and 3 deletions
|
@ -89,6 +89,7 @@ var DynamicTilemapLayer = new Class({
|
||||||
*/
|
*/
|
||||||
this.culledTiles = [];
|
this.culledTiles = [];
|
||||||
|
|
||||||
|
this.setAlpha(this.layer.alpha);
|
||||||
this.setTexture(tileset.image.key);
|
this.setTexture(tileset.image.key);
|
||||||
this.setPosition(x, y);
|
this.setPosition(x, y);
|
||||||
this.setSizeToFrame();
|
this.setSizeToFrame();
|
||||||
|
|
|
@ -98,6 +98,7 @@ var StaticTilemapLayer = new Class({
|
||||||
this.dirty = true;
|
this.dirty = true;
|
||||||
this.vertexCount = 0;
|
this.vertexCount = 0;
|
||||||
|
|
||||||
|
this.setAlpha(this.layer.alpha);
|
||||||
this.setTexture(tileset.image.key);
|
this.setTexture(tileset.image.key);
|
||||||
this.setPosition(x, y);
|
this.setPosition(x, y);
|
||||||
this.setSizeToFrame();
|
this.setSizeToFrame();
|
||||||
|
|
|
@ -208,11 +208,12 @@ var ProcessDragEvents = function (pointer, time)
|
||||||
this.emit('dragenter', pointer, gameObject, input.target);
|
this.emit('dragenter', pointer, gameObject, input.target);
|
||||||
}
|
}
|
||||||
|
|
||||||
var dragEvent = new InputEvent.DRAG(pointer, gameObject);
|
var dragX = pointer.x - gameObject.input.dragX;
|
||||||
|
var dragY = pointer.y - gameObject.input.dragY;
|
||||||
|
|
||||||
gameObject.emit('drag', pointer, dragEvent.dragX, dragEvent.dragY);
|
gameObject.emit('drag', pointer, dragX, dragY);
|
||||||
|
|
||||||
this.emit('drag', dragEvent);
|
this.emit('drag', pointer, gameObject, dragX, dragY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue