コード例 #1
0
        public static CCActionTween create(float aDuration, string key, float from, float to, CCActionTweenDelegate d)
        {
            CCActionTween cCActionTween = new CCActionTween(d);

            cCActionTween.initWithDuration(aDuration, key, from, to);
            return(cCActionTween);
        }
コード例 #2
0
 /** creates an initializes the action with the property name (key), and the from and to parameters. */
 public static CCActionTween create(float aDuration, string key, float from, float to, CCActionTweenDelegate d)
 {
     CCActionTween pRet = new CCActionTween(d);
     pRet.initWithDuration(aDuration, key, from, to);
     return pRet;
 }
コード例 #3
0
ファイル: CCScrollView.cs プロジェクト: homocury/cocos2d-xna
 /**
  * Sets a new scale for container in a given duration.
  *
  * @param s a new scale value
  * @param animation duration
  */
 public void SetZoomScaleInDuration(float s, float dt)
 {
     if (dt > 0)
     {
         if (m_pContainer.Scale != s)
         {
             CCActionTween scaleAction = new CCActionTween (dt, "zoomScale", m_pContainer.Scale, s);
             RunAction(scaleAction);
         }
     }
     else
     {
         ZoomScale = s;
     }
 }
コード例 #4
0
 public override CCFiniteTimeAction reverse()
 {
     return(CCActionTween.create(this.m_fDuration, this.m_strKey, this.m_fTo, this.m_fFrom, this.m_pDelegate));
 }
コード例 #5
0
 public static CCActionTween actionWithDuration(float aDuration, string key, float from, float to, CCActionTweenDelegate d)
 {
     return(CCActionTween.create(aDuration, key, from, to, d));
 }