mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Added properties and methods to complete.
This commit is contained in:
parent
b769fe3cb1
commit
68202fd6e7
2 changed files with 78 additions and 0 deletions
|
@ -1,11 +1,47 @@
|
|||
var GetValue = require('../utils/object/GetValue');
|
||||
var TweenData = require('./TweenData');
|
||||
|
||||
var Tween = function (manager)
|
||||
{
|
||||
this.manager = manager;
|
||||
|
||||
this.targets;
|
||||
this.ease;
|
||||
this.yoyo;
|
||||
this.repeat;
|
||||
this.loop; // same as repeat -1 (if set, overrides repeat value)
|
||||
this.paused;
|
||||
|
||||
this.onStart;
|
||||
this.onStartScope;
|
||||
this.onStartParams;
|
||||
|
||||
this.onUpdate;
|
||||
this.onUpdateScope;
|
||||
this.onUpdateParams;
|
||||
|
||||
this.onRepeat;
|
||||
this.onRepeatScope;
|
||||
this.onRepeatParams;
|
||||
|
||||
this.onComplete;
|
||||
this.onCompleteScope;
|
||||
this.onCompleteParams;
|
||||
|
||||
this.callbackScope;
|
||||
|
||||
this.useFrames = false;
|
||||
};
|
||||
|
||||
Tween.prototype.constructor = Tween;
|
||||
|
||||
Tween.prototype = {
|
||||
|
||||
timeScale: function ()
|
||||
{
|
||||
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
module.exports = Tween;
|
||||
|
|
|
@ -29,6 +29,8 @@ TweenManager.prototype = {
|
|||
{
|
||||
},
|
||||
|
||||
// Add a 'to' GSAP equivalent?
|
||||
|
||||
exists: function (tween)
|
||||
{
|
||||
},
|
||||
|
@ -42,6 +44,46 @@ TweenManager.prototype = {
|
|||
|
||||
},
|
||||
|
||||
globalTimeScale: function ()
|
||||
{
|
||||
},
|
||||
|
||||
getAllTweens: function ()
|
||||
{
|
||||
},
|
||||
|
||||
getTweensOf: function (target)
|
||||
{
|
||||
},
|
||||
|
||||
isTweening: function (target)
|
||||
{
|
||||
},
|
||||
|
||||
kill: function (vars, target)
|
||||
{
|
||||
},
|
||||
|
||||
killAll: function ()
|
||||
{
|
||||
},
|
||||
|
||||
killTweensOf: function (target)
|
||||
{
|
||||
},
|
||||
|
||||
pauseAll: function ()
|
||||
{
|
||||
},
|
||||
|
||||
resumeAll: function ()
|
||||
{
|
||||
},
|
||||
|
||||
delayedCall: function ()
|
||||
{
|
||||
},
|
||||
|
||||
/**
|
||||
* Passes all Tweens to the given callback.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue