// AddFontEffect public void AddFontEffect( FontEffect fontEffect ) { if ( fontEffect == null ) return; FontEffects.Add( fontEffect ); }
// Copy public FontEffect Copy() { FontEffect o = (FontEffect)Activator.CreateInstance(GetType()); CopyTo(o); return(o); }
// CopyTo protected override void CopyTo(FontEffect o) { base.CopyTo(o); FontEffect_Alpha oo = (FontEffect_Alpha)o; oo.LerpType = LerpType; }
// CopyTo protected override void CopyTo(FontEffect o) { base.CopyTo(o); FontEffect_ColorLerp oo = (FontEffect_ColorLerp)o; oo.Colors = Colors; oo.LerpType = LerpType; }
public void AddFontEffect(string fontEffectName) { FontEffect fontEffect = _UI.Store_FontEffect.Get(fontEffectName); if (fontEffect != null) { AddFontEffect(fontEffect.Copy()); } }
// AddFontEffect public void AddFontEffect(FontEffect fontEffect) { if (fontEffect == null) { return; } FontEffects.Add(fontEffect); }
// CopyTo protected override void CopyTo(FontEffect o) { base.CopyTo(o); FontEffect_Scale oo = (FontEffect_Scale)o; oo.ScaleFromX = ScaleFromX; oo.ScaleToX = ScaleToX; oo.ScaleFromY = ScaleFromY; oo.ScaleToY = ScaleToY; oo.LerpType = LerpType; }
// CopyTo protected virtual void CopyTo(FontEffect o) { o.SpriteChangeTime = SpriteChangeTime; o.SpriteUpdateTime = SpriteUpdateTime; for (int i = 0; i < SpriteTimes01.Length; ++i) { o.SpriteTimes01[i] = SpriteTimes01[i]; } o.CurrentSprite = CurrentSprite; // Widget - doesn't copy over o.CurrentChangeTime = CurrentChangeTime; o.WaitTime = WaitTime; o.WaitTimer = WaitTimer; o.SpriteCount = SpriteCount; }
// CopyTo protected override void CopyTo( FontEffect o ) { base.CopyTo( o ); FontEffect_Scale oo = (FontEffect_Scale)o; oo.ScaleFromX = ScaleFromX; oo.ScaleToX = ScaleToX; oo.ScaleFromY = ScaleFromY; oo.ScaleToY = ScaleToY; oo.LerpType = LerpType; }
// CopyTo protected override void CopyTo( FontEffect o ) { base.CopyTo( o ); FontEffect_ColorLerp oo = (FontEffect_ColorLerp)o; oo.Colors = Colors; oo.LerpType = LerpType; }
// CopyTo protected override void CopyTo( FontEffect o ) { base.CopyTo( o ); FontEffect_Alpha oo = (FontEffect_Alpha)o; oo.LerpType = LerpType; }
// CopyTo protected virtual void CopyTo( FontEffect o ) { o.SpriteChangeTime = SpriteChangeTime; o.SpriteUpdateTime = SpriteUpdateTime; for ( int i = 0; i < SpriteTimes01.Length; ++i ) o.SpriteTimes01[ i ] = SpriteTimes01[ i ]; o.CurrentSprite = CurrentSprite; // Widget - doesn't copy over o.CurrentChangeTime = CurrentChangeTime; o.WaitTime = WaitTime; o.WaitTimer = WaitTimer; o.SpriteCount = SpriteCount; }