Skip to content

Commit

Permalink
If you inputEnable = false a gameobject you couldn't re-enable it aga…
Browse files Browse the repository at this point in the history
…in using inputEnable = true, only directly via the handler (thanks @nickrall, fix phaserjs#673)

Updated the PhysicsEditor plugin to maintain position, radius, mask bits, category bits and sensor flags (thanks @georgiee, phaserjs#674)
  • Loading branch information
photonstorm committed Mar 31, 2014
1 parent a45c498 commit 1a92f5b
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,19 @@ Version 2.0.3 - "Allorallen" - -in development-

Bug Fixes

* If you inputEnable = false a gameobject you couldn't re-enable it again using inputEnable = true, only directly via the handler (thanks @nickrall, fix #673)


Updated

* Return the result of P2.Body.setCircle for further chaining and manipulation (fix #659)
* Updated the PhysicsEditor plugin to maintain position, radius, mask bits, category bits and sensor flags (thanks @georgiee, #674)


New Features

* Added ability to retrieve a single p2 fixture from the cache (thanks @georgiee, #674)


ToDo

Expand Down
5 changes: 5 additions & 0 deletions src/gameobjects/BitmapText.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,10 @@ Object.defineProperty(Phaser.BitmapText.prototype, "inputEnabled", {
this.input = new Phaser.InputHandler(this);
this.input.start();
}
else if (this.input && !this.input.enabled)
{
this.input.start();
}
}
else
{
Expand All @@ -425,6 +429,7 @@ Object.defineProperty(Phaser.BitmapText.prototype, "inputEnabled", {
this.input.stop();
}
}

}

});
Expand Down
4 changes: 4 additions & 0 deletions src/gameobjects/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,10 @@ Object.defineProperty(Phaser.Image.prototype, "inputEnabled", {
this.input = new Phaser.InputHandler(this);
this.input.start();
}
else if (this.input && !this.input.enabled)
{
this.input.start();
}
}
else
{
Expand Down
5 changes: 5 additions & 0 deletions src/gameobjects/Sprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,10 @@ Object.defineProperty(Phaser.Sprite.prototype, "inputEnabled", {
this.input = new Phaser.InputHandler(this);
this.input.start();
}
else if (this.input && !this.input.enabled)
{
this.input.start();
}
}
else
{
Expand All @@ -886,6 +890,7 @@ Object.defineProperty(Phaser.Sprite.prototype, "inputEnabled", {
this.input.stop();
}
}

}

});
Expand Down
5 changes: 5 additions & 0 deletions src/gameobjects/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -838,6 +838,10 @@ Object.defineProperty(Phaser.Text.prototype, "inputEnabled", {
this.input = new Phaser.InputHandler(this);
this.input.start();
}
else if (this.input && !this.input.enabled)
{
this.input.start();
}
}
else
{
Expand All @@ -846,6 +850,7 @@ Object.defineProperty(Phaser.Text.prototype, "inputEnabled", {
this.input.stop();
}
}

}

});
Expand Down
5 changes: 5 additions & 0 deletions src/gameobjects/TileSprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,10 @@ Object.defineProperty(Phaser.TileSprite.prototype, "inputEnabled", {
this.input = new Phaser.InputHandler(this);
this.input.start();
}
else if (this.input && !this.input.enabled)
{
this.input.start();
}
}
else
{
Expand All @@ -683,6 +687,7 @@ Object.defineProperty(Phaser.TileSprite.prototype, "inputEnabled", {
this.input.stop();
}
}

}

});
Expand Down

0 comments on commit 1a92f5b

Please sign in to comment.