예제 #1
0
        // AddFontEffect
        public void AddFontEffect( FontEffect fontEffect )
        {
            if ( fontEffect == null )
            return;

            FontEffects.Add( fontEffect );
        }
예제 #2
0
        // Copy
        public FontEffect Copy()
        {
            FontEffect o = (FontEffect)Activator.CreateInstance(GetType());

            CopyTo(o);

            return(o);
        }
예제 #3
0
        // CopyTo
        protected override void CopyTo(FontEffect o)
        {
            base.CopyTo(o);

            FontEffect_Alpha oo = (FontEffect_Alpha)o;

            oo.LerpType = LerpType;
        }
예제 #4
0
        // CopyTo
        protected override void CopyTo(FontEffect o)
        {
            base.CopyTo(o);

            FontEffect_ColorLerp oo = (FontEffect_ColorLerp)o;

            oo.Colors   = Colors;
            oo.LerpType = LerpType;
        }
예제 #5
0
        public void AddFontEffect(string fontEffectName)
        {
            FontEffect fontEffect = _UI.Store_FontEffect.Get(fontEffectName);

            if (fontEffect != null)
            {
                AddFontEffect(fontEffect.Copy());
            }
        }
예제 #6
0
        // AddFontEffect
        public void AddFontEffect(FontEffect fontEffect)
        {
            if (fontEffect == null)
            {
                return;
            }

            FontEffects.Add(fontEffect);
        }
예제 #7
0
        // 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;
        }
예제 #8
0
        // 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;
        }
예제 #9
0
        // 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;
        }
예제 #10
0
        // CopyTo
        protected override void CopyTo( FontEffect o )
        {
            base.CopyTo( o );

            FontEffect_ColorLerp oo = (FontEffect_ColorLerp)o;

            oo.Colors = Colors;
            oo.LerpType = LerpType;
        }
예제 #11
0
        // CopyTo
        protected override void CopyTo( FontEffect o )
        {
            base.CopyTo( o );

            FontEffect_Alpha oo = (FontEffect_Alpha)o;

            oo.LerpType = LerpType;
        }
예제 #12
0
        // 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;
        }