You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/animations/Animation.js
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -226,7 +226,7 @@ var Animation = new Class({
226
226
*
227
227
* @param {(string|Phaser.Types.Animations.AnimationFrame[])} config - Either a string, in which case it will use all frames from a texture with the matching key, or an array of Animation Frame configuration objects.
228
228
*
229
-
* @return {Phaser.Animations.Animation} This Animation object.
229
+
* @return {this} This Animation object.
230
230
*/
231
231
addFrame: function(config)
232
232
{
@@ -242,7 +242,7 @@ var Animation = new Class({
242
242
* @param {integer} index - The index to insert the frame at within the animation.
243
243
* @param {(string|Phaser.Types.Animations.AnimationFrame[])} config - Either a string, in which case it will use all frames from a texture with the matching key, or an array of Animation Frame configuration objects.
244
244
*
245
-
* @return {Phaser.Animations.Animation} This Animation object.
245
+
* @return {this} This Animation object.
246
246
*/
247
247
addFrameAt: function(index,config)
248
248
{
@@ -698,7 +698,7 @@ var Animation = new Class({
698
698
*
699
699
* @param {Phaser.Animations.AnimationFrame} frame - The AnimationFrame to be removed.
700
700
*
701
-
* @return {Phaser.Animations.Animation} This Animation object.
701
+
* @return {this} This Animation object.
702
702
*/
703
703
removeFrame: function(frame)
704
704
{
@@ -721,7 +721,7 @@ var Animation = new Class({
721
721
*
722
722
* @param {integer} index - The index in the AnimationFrame array
723
723
*
724
-
* @return {Phaser.Animations.Animation} This Animation object.
Copy file name to clipboardExpand all lines: src/animations/AnimationManager.js
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -131,15 +131,15 @@ var AnimationManager = new Class({
131
131
* @param {string} key - The key under which the Animation should be added. The Animation will be updated with it. Must be unique.
132
132
* @param {Phaser.Animations.Animation} animation - The Animation which should be added to the Animation Manager.
133
133
*
134
-
* @return {Phaser.Animations.AnimationManager} This Animation Manager.
134
+
* @return {this} This Animation Manager.
135
135
*/
136
136
add: function(key,animation)
137
137
{
138
138
if(this.anims.has(key))
139
139
{
140
140
console.warn('Animation key exists: '+key);
141
141
142
-
return;
142
+
returnthis;
143
143
}
144
144
145
145
animation.key=key;
@@ -486,7 +486,7 @@ var AnimationManager = new Class({
486
486
* @fires Phaser.Animations.Events#PAUSE_ALL
487
487
* @since 3.0.0
488
488
*
489
-
* @return {Phaser.Animations.AnimationManager} This Animation Manager.
489
+
* @return {this} This Animation Manager.
490
490
*/
491
491
pauseAll: function()
492
492
{
@@ -509,7 +509,7 @@ var AnimationManager = new Class({
509
509
* @param {string} key - The key of the animation to play on the Game Object.
510
510
* @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} child - The Game Objects to play the animation on.
511
511
*
512
-
* @return {Phaser.Animations.AnimationManager} This Animation Manager.
512
+
* @return {this} This Animation Manager.
513
513
*/
514
514
play: function(key,child)
515
515
{
@@ -522,7 +522,7 @@ var AnimationManager = new Class({
522
522
523
523
if(!anim)
524
524
{
525
-
return;
525
+
returnthis;
526
526
}
527
527
528
528
for(vari=0;i<child.length;i++)
@@ -568,7 +568,7 @@ var AnimationManager = new Class({
568
568
* @fires Phaser.Animations.Events#RESUME_ALL
569
569
* @since 3.0.0
570
570
*
571
-
* @return {Phaser.Animations.AnimationManager} This Animation Manager.
571
+
* @return {this} This Animation Manager.
572
572
*/
573
573
resumeAll: function()
574
574
{
@@ -596,7 +596,7 @@ var AnimationManager = new Class({
596
596
* @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} children - An array of Game Objects to play the animation on. They must have an Animation Component.
597
597
* @param {number} [stagger=0] - The amount of time, in milliseconds, to offset each play time by.
598
598
*
599
-
* @return {Phaser.Animations.AnimationManager} This Animation Manager.
599
+
* @return {this} This Animation Manager.
600
600
*/
601
601
staggerPlay: function(key,children,stagger)
602
602
{
@@ -611,7 +611,7 @@ var AnimationManager = new Class({
* @return {Phaser.Cameras.Scene2D.BaseCamera} This Camera instance.
707
+
* @return {this} This Camera instance.
708
708
*/
709
709
centerToSize: function()
710
710
{
@@ -872,7 +872,7 @@ var BaseCamera = new Class({
872
872
*
873
873
* @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group)} entries - The Game Object, or array of Game Objects, to be ignored by this Camera.
874
874
*
875
-
* @return {Phaser.Cameras.Scene2D.BaseCamera} This Camera instance.
875
+
* @return {this} This Camera instance.
876
876
*/
877
877
ignore: function(entries)
878
878
{
@@ -1042,7 +1042,7 @@ var BaseCamera = new Class({
0 commit comments