Skip to content

Commit 7a2b970

Browse files
committed
Added SetTint (and Shuffle into the index)
1 parent 5f1c022 commit 7a2b970

2 files changed

Lines changed: 27 additions & 0 deletions

File tree

v3/src/actions/SetTint.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* [description]
3+
*
4+
* @function Phaser.Actions.SetTint
5+
* @since 3.0.0
6+
*
7+
* @param {array} items - An array of Game Objects. The contents of this array are updated by this Action.
8+
* @param {number} topLeft - [description]
9+
* @param {number} [topRight] - [description]
10+
* @param {number} [bottomLeft] - [description]
11+
* @param {number} [bottomRight] - [description]
12+
*
13+
* @return {array} The array of Game Objects that was passed to this Action.
14+
*/
15+
var SetTint = function (items, topLeft, topRight, bottomLeft, bottomRight)
16+
{
17+
for (var i = 0; i < items.length; i++)
18+
{
19+
items[i].setTint(topLeft, topRight, bottomLeft, bottomRight);
20+
}
21+
22+
return items;
23+
};
24+
25+
module.exports = SetTint;

v3/src/actions/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ module.exports = {
3838
SetScale: require('./SetScale'),
3939
SetScaleX: require('./SetScaleX'),
4040
SetScaleY: require('./SetScaleY'),
41+
SetTint: require('./SetTint'),
4142
SetVisible: require('./SetVisible'),
4243
SetX: require('./SetX'),
4344
SetXY: require('./SetXY'),
4445
SetY: require('./SetY'),
4546
ShiftPosition: require('./ShiftPosition'),
47+
Shuffle: require('./Shuffle'),
4648
SmootherStep: require('./SmootherStep'),
4749
SmoothStep: require('./SmoothStep'),
4850
Spread: require('./Spread'),

0 commit comments

Comments
 (0)