mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
Merge pull request #6641 from rexrainbow/gameobject-tint-getter
Add getter of tint property
This commit is contained in:
commit
2d1c24cc3a
1 changed files with 6 additions and 1 deletions
|
@ -182,7 +182,7 @@ var Tint = {
|
|||
|
||||
/**
|
||||
* The tint value being applied to the whole of the Game Object.
|
||||
* This property is a setter-only. Use the properties `tintTopLeft` etc to read the current tint value.
|
||||
* Return `tintTopLeft` when read this tint property.
|
||||
*
|
||||
* @name Phaser.GameObjects.Components.Tint#tint
|
||||
* @type {number}
|
||||
|
@ -191,6 +191,11 @@ var Tint = {
|
|||
*/
|
||||
tint: {
|
||||
|
||||
get: function()
|
||||
{
|
||||
return this.tintTopLeft;
|
||||
},
|
||||
|
||||
set: function (value)
|
||||
{
|
||||
this.setTint(value, value, value, value);
|
||||
|
|
Loading…
Reference in a new issue