mirror of
https://github.com/wassname/phaser.git
synced 2026-09-10 12:29:30 +08:00
Re-done the pointer handler so it respects the top-most rendered sprite in priority to anything below it, for both mouse over and click events.
This commit is contained in:
@@ -88,8 +88,7 @@ module Phaser {
|
||||
var data: FrameData = new FrameData();
|
||||
|
||||
// By this stage frames is a fully parsed array
|
||||
var frames = json;
|
||||
|
||||
var frames = json['frames'];
|
||||
var newFrame: Frame;
|
||||
|
||||
for (var i = 0; i < frames.length; i++)
|
||||
|
||||
@@ -89,7 +89,7 @@ module Phaser {
|
||||
* @param data {object} Extra texture atlas data.
|
||||
* @param atlasData {object} Texture atlas frames data.
|
||||
*/
|
||||
public addTextureAtlas(key: string, url: string, data, atlasData, format) {
|
||||
public addTextureAtlas(key: string, url: string, data, atlasData, format: number) {
|
||||
|
||||
this._images[key] = { url: url, data: data, spriteSheet: true };
|
||||
|
||||
|
||||
@@ -434,7 +434,7 @@ module Phaser {
|
||||
var data = JSON.parse(this._xhr.response);
|
||||
var file = this._fileList[key];
|
||||
|
||||
this._game.cache.addTextureAtlas(file.key, file.url, file.data, data['frames'], file.format);
|
||||
this._game.cache.addTextureAtlas(file.key, file.url, file.data, data, file.format);
|
||||
|
||||
this.nextFile(key, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user