Added SetTint (and Shuffle into the index)

This commit is contained in:
Richard Davey 2017-11-17 18:29:20 +00:00
parent 5f1c022866
commit 7a2b970bb1
2 changed files with 27 additions and 0 deletions

25
v3/src/actions/SetTint.js Normal file
View file

@ -0,0 +1,25 @@
/**
* [description]
*
* @function Phaser.Actions.SetTint
* @since 3.0.0
*
* @param {array} items - An array of Game Objects. The contents of this array are updated by this Action.
* @param {number} topLeft - [description]
* @param {number} [topRight] - [description]
* @param {number} [bottomLeft] - [description]
* @param {number} [bottomRight] - [description]
*
* @return {array} The array of Game Objects that was passed to this Action.
*/
var SetTint = function (items, topLeft, topRight, bottomLeft, bottomRight)
{
for (var i = 0; i < items.length; i++)
{
items[i].setTint(topLeft, topRight, bottomLeft, bottomRight);
}
return items;
};
module.exports = SetTint;

View file

@ -38,11 +38,13 @@ module.exports = {
SetScale: require('./SetScale'),
SetScaleX: require('./SetScaleX'),
SetScaleY: require('./SetScaleY'),
SetTint: require('./SetTint'),
SetVisible: require('./SetVisible'),
SetX: require('./SetX'),
SetXY: require('./SetXY'),
SetY: require('./SetY'),
ShiftPosition: require('./ShiftPosition'),
Shuffle: require('./Shuffle'),
SmootherStep: require('./SmootherStep'),
SmoothStep: require('./SmoothStep'),
Spread: require('./Spread'),