/// <summary> /// Create a new instance of a ColorEffect /// </summary> /// <param name="controle">Gui controle</param> /// <param name="speed">Speed of the Effect</param> /// <param name="from">From color of the Effect</param> /// <param name="to">To color of the Effect</param> /// <param name="loop">True if effect must loop</param> public ColorEffect(IColorCapable control, EffectSpeedEnum speed, Color from, Color to, bool loop = false) : base(control, speed, loop) { this._from = from; this._to = to; this._amount = 0; }
/// <summary> /// Create a new instance of a FadeEffect /// </summary> /// <param name="controle">Gui controle</param> /// <param name="speed">Speed of the Effect</param> /// <param name="from">From value of the Effect</param> /// <param name="to">To value of the Effect</param> /// <param name="loop">True if effect must loop</param> public FadeEffect(IFadeCapable controle, EffectSpeedEnum speed, float from, float to, bool loop = false) : base(controle, speed, loop) { this._from = from; this._to = to; }
/// <summary> /// Create a new instance of a TextFadeEffect /// </summary> /// <param name="controle">Gui controle</param> /// <param name="speed">Speed of the Effect</param> /// <param name="from">From value of the Effect</param> /// <param name="to">To value of the Effect</param> /// <param name="loop">True if effect must loop</param> public TextFadeEffect(ITextFadeCapable controle, EffectSpeedEnum speed, float from, float to, bool loop = false) : base(controle, speed, from, to, loop) { }
/// <summary> /// Create a new instance of an Effect /// </summary> /// <param name="effectObject">Control with effect capability</param> /// <param name="speed">Speed of the Effect</param> /// <param name="loop">True if effect must loop</param> public AbstractEffect(IEffectCapable control, EffectSpeedEnum speed, bool loop = false) { this.Control = control; this.Speed = speed; this.Loop = loop; }
/// <summary> /// Create a new instance of a TextColorEffect /// </summary> /// <param name="controle">Gui controle</param> /// <param name="speed">Speed of the Effect</param> /// <param name="from">From color of the Effect</param> /// <param name="to">To color of the Effect</param> /// <param name="loop">True if effect must loop</param> public TextColorEffect(IColorCapable control, EffectSpeedEnum speed, Color from, Color to, bool loop = false) : base(control, speed, from, to, loop) { }