93 lines
1.9 KiB
C#
93 lines
1.9 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Diagnostics;
|
|
using System.Text;
|
|
using System.Xml;
|
|
using System.Xml.XPath;
|
|
|
|
using Vocaluxe.Base;
|
|
using Vocaluxe.Lib.Draw;
|
|
|
|
namespace Vocaluxe.Menu.Animations
|
|
{
|
|
public class CAnimation:IAnimation
|
|
{
|
|
private IAnimation _Animation;
|
|
|
|
public CAnimation(EAnimationType Type)
|
|
{
|
|
setAnimation(Type);
|
|
}
|
|
|
|
public void Init()
|
|
{
|
|
_Animation.Init();
|
|
}
|
|
|
|
public bool LoadAnimation(string item, XPathNavigator navigator)
|
|
{
|
|
return _Animation.LoadAnimation(item, navigator);
|
|
}
|
|
|
|
public bool SaveAnimation(XmlWriter writer)
|
|
{
|
|
return _Animation.SaveAnimation(writer);
|
|
}
|
|
|
|
public void StartAnimation()
|
|
{
|
|
_Animation.StartAnimation();
|
|
}
|
|
|
|
public void StopAnimation()
|
|
{
|
|
_Animation.StopAnimation();
|
|
}
|
|
|
|
public void ResetAnimation()
|
|
{
|
|
_Animation.ResetAnimation();
|
|
}
|
|
|
|
public bool AnimationActive()
|
|
{
|
|
return _Animation.AnimationActive();
|
|
}
|
|
|
|
public void Update()
|
|
{
|
|
_Animation.Update();
|
|
}
|
|
|
|
public void setRect(SRectF rect)
|
|
{
|
|
_Animation.setRect(rect);
|
|
}
|
|
|
|
public SRectF getRect()
|
|
{
|
|
return _Animation.getRect();
|
|
}
|
|
|
|
public void setColor(SColorF color)
|
|
{
|
|
_Animation.setColor(color);
|
|
}
|
|
|
|
public SColorF getColor()
|
|
{
|
|
return _Animation.getColor();
|
|
}
|
|
|
|
public void setAnimation(EAnimationType Type)
|
|
{
|
|
switch (Type)
|
|
{
|
|
case EAnimationType.Resize:
|
|
_Animation = new CAnimationResize();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|