예제 #1
0
        public override void Draw()
        {
            if (FrameIndex >= FrameCount && !Repeat)
            {
                return;
            }
            if (BodyLibrary == null)
            {
                return;
            }

            if (Blend)
            {
                BodyLibrary.DrawBlend(DrawFrame + FrameIndex, DrawLocation, DrawColour, true, 0.8F);
            }
            else
            {
                BodyLibrary.Draw(DrawFrame + FrameIndex, DrawLocation, DrawColour, true);
            }
            //画特效
            if (EffectCount <= 0)
            {
                return;
            }
            if (EffectIndex >= EffectCount && !Repeat)
            {
                return;
            }
            BodyLibrary.DrawBlend(EffectStart + EffectIndex, DrawLocation, Color.White, true, 0.8F);
        }
예제 #2
0
        public override void DrawEffects()
        {
            if (BodyLibrary == null)
            {
                return;
            }

            if (DrawWingFrame > 0)
            {
                BodyLibrary.DrawBlend(DrawWingFrame, DrawLocation, Color.White, true);
            }
        }
예제 #3
0
        public override void Draw()
        {
            if (FrameIndex >= FrameCount && !Repeat)
            {
                return;
            }
            if (BodyLibrary == null)
            {
                return;
            }

            if (Blend)
            {
                BodyLibrary.DrawBlend(DrawFrame + FrameIndex, DrawLocation, DrawColour, true, 0.8F);
            }
            else
            {
                BodyLibrary.Draw(DrawFrame + FrameIndex, DrawLocation, DrawColour, true);
            }
        }