コード例 #1
0
 public override void Animate(float timePassed, Animator animator)
 {
   base.Animate(timePassed, animator);
   _reCalculate = true;
 }
コード例 #2
0
 /// <summary>
 /// Method to get animate the current control
 /// </summary>
 public override void Animate(float timePassed, Animator animator)
 {
   if (animator == null)
   {
     return;
   }
   if (_imageInfo != null)
   {
     _imageInfo.Animate(timePassed, animator);
   }
   if (_upDownControl != null)
   {
     _upDownControl.Animate(timePassed, animator);
   }
   if (_imageBackground != null)
   {
     _imageBackground.Animate(timePassed, animator);
   }
   base.Animate(timePassed, animator);
 }
コード例 #3
0
 public override void Animate(float timePassed, Animator animator)
 {
   if (_layoutAlbum != null)
   {
     _layoutAlbum.Animate(timePassed, animator);
   }
   if (_layoutList != null)
   {
     _layoutList.Animate(timePassed, animator);
   }
   if (_layoutThumbnail != null)
   {
     _layoutThumbnail.Animate(timePassed, animator);
   }
   if (_layoutFilmStrip != null)
   {
     _layoutFilmStrip.Animate(timePassed, animator);
   }
   if (_layoutPlayList != null)
   {
     _layoutPlayList.Animate(timePassed, animator);
   }
   if (_layoutCoverFlow != null)
   {
     _layoutCoverFlow.Animate(timePassed, animator);
   }
   base.Animate(timePassed, animator);
 }
コード例 #4
0
    /// <summary>
    /// Method to get animate the current control
    /// </summary>
    public virtual void Animate(float timePassed, Animator animator)
    {
      _isAnimating = true;
      int x = _originalRectangle.X;
      int y = _originalRectangle.Y;
      int w = _originalRectangle.Width;
      int h = _originalRectangle.Height;
      long color = _diffuseColor;
      animator.Animate(timePassed, ref x, ref y, ref w, ref h, ref color);

      _diffuseColor = color;
      _positionX = x;
      _positionY = y;
      base.Width = w;
      base.Height = h;
      DoUpdate();
    }
コード例 #5
0
ファイル: GUIGroup.cs プロジェクト: MediaPortal/MediaPortal-1
 public override void OnInit()
 {
   _startAnimation = true;
   _animator = new Animator(_animatorType);
 }
コード例 #6
0
ファイル: GUIGroup.cs プロジェクト: MediaPortal/MediaPortal-1
    public override void Animate(float timePassed, Animator animator)
    {
      foreach (GUIControl control in Children)
      {
        control.Animate(timePassed, animator);
      }

      base.Animate(timePassed, animator);
    }
コード例 #7
0
ファイル: GUICoverFlow.cs プロジェクト: arangas/MediaPortal-1
    public override void Animate(float timePassed, Animator animator)
    {
      if (animator == null)
      {
        return;
      }

      if (_imageBackground != null)
      {
        _imageBackground.Animate(timePassed, animator);
      }

      if (_imageForeground != null)
      {
        _imageForeground.Animate(timePassed, animator);
      }

      base.Animate(timePassed, animator);
    }