Пример #1
0
        public override void Draw(Structures.EntityRenderProp properties)
        {
            Methods.Draw.GraphicsHandler d = properties.Graphics;
            SceneEntity entity             = properties.Object;

            Classes.Scene.Sets.EditorEntity e = properties.EditorObject;
            int x                  = properties.X;
            int y                  = properties.Y;
            int Transparency       = properties.Transparency;
            int index              = properties.Index;
            int previousChildCount = properties.PreviousChildCount;
            int platformAngle      = properties.PlatformAngle;

            Methods.Entities.EntityAnimator Animation = properties.Animations;
            bool selected        = properties.isSelected;
            var  editorAnim      = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("MSPanel", d.DevicePanel, 0, 0, false, false, false);
            var  editorAnimPanel = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("MSPanel", d.DevicePanel, 1, -1, false, false, false);

            if (editorAnim != null && editorAnim.Frames.Count != 0 && editorAnimPanel != null && editorAnimPanel.Frames.Count != 0)
            {
                var frame      = editorAnim.Frames[0];
                var framePanel = editorAnimPanel.Frames[Animation.index];

                Animation.ProcessAnimation(framePanel.Entry.SpeedMultiplyer, framePanel.Entry.Frames.Count, framePanel.Frame.Delay);

                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame),
                             x + frame.Frame.PivotX,
                             y + frame.Frame.PivotY,
                             frame.Frame.Width, frame.Frame.Height, false, Transparency);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(framePanel),
                             x + framePanel.Frame.PivotX,
                             y + framePanel.Frame.PivotY,
                             framePanel.Frame.Width, framePanel.Frame.Height, false, Transparency);
            }
        }
Пример #2
0
        public override void Draw(Structures.EntityRenderProp properties)
        {
            Methods.Draw.GraphicsHandler d = properties.Graphics;
            SceneEntity entity             = properties.Object;

            Classes.Scene.Sets.EditorEntity e = properties.EditorObject;
            int x                  = properties.X;
            int y                  = properties.Y;
            int Transparency       = properties.Transparency;
            int index              = properties.Index;
            int previousChildCount = properties.PreviousChildCount;
            int platformAngle      = properties.PlatformAngle;

            Methods.Entities.EntityAnimator Animation = properties.Animations;
            bool selected    = properties.isSelected;
            bool fliph       = false;
            bool flipv       = false;
            var  editorAnim  = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("WeatherMobile", d.DevicePanel, 0, 0, fliph, flipv, false);
            var  editorAnim2 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("WeatherMobile", d.DevicePanel, 0, 1, fliph, flipv, false);
            var  editorAnim3 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("WeatherMobile", d.DevicePanel, 0, 2, fliph, flipv, false);
            var  editorAnim4 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("WeatherMobile", d.DevicePanel, 0, 3, fliph, flipv, false);

            if (editorAnim != null && editorAnim.Frames.Count != 0 && editorAnim2 != null && editorAnim2.Frames.Count != 0 && editorAnim3 != null && editorAnim3.Frames.Count != 0 && editorAnim4 != null && editorAnim4.Frames.Count != 0)
            {
                var frame  = editorAnim.Frames[0];
                var frame2 = editorAnim2.Frames[0];
                var frame3 = editorAnim3.Frames[0];
                var frame4 = editorAnim4.Frames[0];

                //Animation.ProcessAnimation(frame.Entry.SpeedMultiplyer, frame.Entry.Frames.Count, frame.Frame.Delay);

                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame),
                             x + frame.Frame.PivotX - (fliph ? (frame.Frame.Width - editorAnim.Frames[0].Frame.Width) : 0),
                             y - SEPERATE_VALUE + frame.Frame.PivotY + (flipv ? (frame.Frame.Height - editorAnim.Frames[0].Frame.Height) : 0),
                             frame.Frame.Width, frame.Frame.Height, false, Transparency);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame4),
                             x + frame4.Frame.PivotX - (fliph ? (frame4.Frame.Width - editorAnim4.Frames[0].Frame.Width) : 0),
                             y - SEPERATE_VALUE + frame4.Frame.PivotY + (flipv ? (frame4.Frame.Height - editorAnim4.Frames[0].Frame.Height) : 0),
                             frame4.Frame.Width, frame4.Frame.Height, false, Transparency);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame2),
                             x + frame2.Frame.PivotX - (fliph ? (frame2.Frame.Width - editorAnim.Frames[0].Frame.Width) : 0),
                             y - SEPERATE_VALUE + frame2.Frame.PivotY + (flipv ? (frame2.Frame.Height - editorAnim.Frames[0].Frame.Height) : 0),
                             frame2.Frame.Width, frame.Frame.Height, false, 100);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame3),
                             x + frame3.Frame.PivotX - (fliph ? (frame3.Frame.Width - editorAnim3.Frames[0].Frame.Width) : 0),
                             y - SEPERATE_VALUE + frame3.Frame.PivotY + (flipv ? (frame3.Frame.Height - editorAnim3.Frames[0].Frame.Height) : 0),
                             frame3.Frame.Width, frame3.Frame.Height, false, 100);
            }
        }
Пример #3
0
        public override void Draw(Structures.EntityRenderProp properties)
        {
            Methods.Draw.GraphicsHandler d = properties.Graphics;
            SceneEntity entity             = properties.Object;

            Classes.Scene.Sets.EditorEntity e = properties.EditorObject;
            int x                  = properties.X;
            int y                  = properties.Y;
            int Transparency       = properties.Transparency;
            int index              = properties.Index;
            int previousChildCount = properties.PreviousChildCount;
            int platformAngle      = properties.PlatformAngle;

            Methods.Entities.EntityAnimator Animation = properties.Animations;
            bool selected   = properties.isSelected;
            int  aniID      = (int)entity.attributesMap["aniID"].ValueUInt8;
            int  frameID    = (int)entity.attributesMap["frameID"].ValueUInt8;
            bool fliph      = false;
            bool flipv      = false;
            var  editorAnim = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("GigaMetal", d.DevicePanel, aniID, frameID, fliph, flipv, false);

            if (editorAnim != null && editorAnim.Frames.Count != 0)
            {
                var frame = editorAnim.Frames[Animation.index];

                Animation.ProcessAnimation(frame.Entry.SpeedMultiplyer, frame.Entry.Frames.Count, frame.Frame.Delay);

                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame),
                             x + frame.Frame.PivotX - (fliph ? (frame.Frame.Width - editorAnim.Frames[0].Frame.Width) : 0),
                             y + frame.Frame.PivotY + (flipv ? (frame.Frame.Height - editorAnim.Frames[0].Frame.Height) : 0),
                             frame.Frame.Width, frame.Frame.Height, false, Transparency);
            }
        }
        public override void Draw(Structures.EntityRenderProp properties)
        {
            Methods.Draw.GraphicsHandler d = properties.Graphics;
            SceneEntity entity             = properties.Object;

            Classes.Scene.Sets.EditorEntity e = properties.EditorObject;
            int x                  = properties.X;
            int y                  = properties.Y;
            int Transparency       = properties.Transparency;
            int index              = properties.Index;
            int previousChildCount = properties.PreviousChildCount;
            int platformAngle      = properties.PlatformAngle;

            Methods.Entities.EntityAnimator Animation = properties.Animations;
            bool   selected    = properties.isSelected;
            int    direction   = (int)entity.attributesMap["direction"].ValueUInt8;
            int    characterID = (int)entity.attributesMap["characterID"].ValueUInt8;
            bool   fliph       = false;
            bool   flipv       = false;
            string sprite      = "";
            int    animID      = 0;
            bool   multiFrame  = false;

            switch (characterID)
            {
            case 0:
                sprite = "Gunner";
                animID = 0;
                break;

            case 1:
                sprite = "Shinobi";
                animID = 0;
                break;

            case 2:
                sprite = "Mystic";
                animID = 0;
                break;

            case 3:
                sprite = "Rider";
                animID = 0;
                break;

            case 4:
                sprite     = "King";
                animID     = 0;
                multiFrame = true;
                break;

            case 5:
                sprite = "Rogues";
                animID = 0;
                break;

            case 6:
                sprite = "Rogues";
                animID = 5;
                break;

            case 7:
                sprite = "Rogues";
                animID = 12;
                break;

            case 8:
                sprite     = "DamagedKing";
                animID     = 0;
                multiFrame = true;
                break;

            case 9:
                sprite = "HBHPile";
                animID = 0;
                break;

            default:
                sprite = "Gunner";
                animID = 0;
                break;
            }
            if (direction == 1)
            {
                fliph = true;
            }
            var editorAnim = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2(sprite, d.DevicePanel, animID, -1, fliph, flipv, false);

            if (editorAnim != null && editorAnim.Frames.Count != 0)
            {
                var frame = editorAnim.Frames[Animation.index];

                Animation.ProcessAnimation(frame.Entry.SpeedMultiplyer, frame.Entry.Frames.Count, frame.Frame.Delay);

                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame),
                             x + frame.Frame.PivotX - (fliph ? (frame.Frame.Width - editorAnim.Frames[0].Frame.Width) : 0),
                             y + frame.Frame.PivotY + (flipv ? (frame.Frame.Height - editorAnim.Frames[0].Frame.Height) : 0),
                             frame.Frame.Width, frame.Frame.Height, false, Transparency);
            }
            if (multiFrame)
            {
                string sprite2 = "";
                int    animID2 = 0;
                switch (characterID)
                {
                case 4:
                    sprite2 = "King";
                    animID2 = 14;
                    break;

                case 8:
                    sprite  = "DamagedKing";
                    animID2 = 1;
                    break;
                }
                var editorAnim2 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2(sprite2, d.DevicePanel, animID2, -1, fliph, flipv, false);
                if (editorAnim2 != null && editorAnim2.Frames.Count != 0)
                {
                    var frame = editorAnim2.Frames[Animation.index];

                    Animation.ProcessAnimation(frame.Entry.SpeedMultiplyer, frame.Entry.Frames.Count, frame.Frame.Delay);

                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame),
                                 x + frame.Frame.PivotX - (fliph ? (frame.Frame.Width - editorAnim2.Frames[0].Frame.Width) : 0),
                                 y + frame.Frame.PivotY + (flipv ? (frame.Frame.Height - editorAnim2.Frames[0].Frame.Height) : 0),
                                 frame.Frame.Width, frame.Frame.Height, false, Transparency);
                }
            }
        }
        public override void Draw(Structures.EntityRenderProp properties)
        {
            Methods.Draw.GraphicsHandler d = properties.Graphics;
            SceneEntity entity             = properties.Object;

            Classes.Scene.Sets.EditorEntity e = properties.EditorObject;
            int x                  = properties.X;
            int y                  = properties.Y;
            int Transparency       = properties.Transparency;
            int index              = properties.Index;
            int previousChildCount = properties.PreviousChildCount;
            int platformAngle      = properties.PlatformAngle;

            Methods.Entities.EntityAnimator Animation = properties.Animations;
            bool selected        = properties.isSelected;
            bool fliph           = false;
            bool flipv           = false;
            int  chainLength     = (int)entity.attributesMap["chainLength"].ValueUInt8;
            var  editorAnim      = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("SpikeFlail", d.DevicePanel, 0, 0, fliph, flipv, false);
            var  editorAnimBall  = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("SpikeFlail", d.DevicePanel, 1, 0, fliph, flipv, false);
            var  editorAnimRing1 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("SpikeFlail", d.DevicePanel, 2, 0, fliph, flipv, false);
            var  editorAnimRing2 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("SpikeFlail", d.DevicePanel, 3, 0, fliph, flipv, false);
            var  editorAnimRing3 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("SpikeFlail", d.DevicePanel, 4, 0, fliph, flipv, false);

            if (editorAnim != null && editorAnim.Frames.Count != 0 && editorAnimBall != null && editorAnimBall.Frames.Count != 0 && editorAnimRing1 != null && editorAnimRing1.Frames.Count != 0 && editorAnimRing2 != null && editorAnimRing2.Frames.Count != 0 && editorAnimRing3 != null && editorAnimRing3.Frames.Count != 0)
            {
                var frame      = editorAnim.Frames[0];
                var frameBall  = editorAnimBall.Frames[0];
                var frameRing1 = editorAnimRing1.Frames[0];
                var frameRing2 = editorAnimRing2.Frames[0];
                var frameRing3 = editorAnimRing3.Frames[0];

                //Animation.ProcessAnimation(frame.Entry.SpeedMultiplyer, frame.Entry.Frames.Count, frame.Frame.Delay);

                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame),
                             x + frame.Frame.PivotX - (fliph ? (frame.Frame.Width - editorAnim.Frames[0].Frame.Width) : 0),
                             y + frame.Frame.PivotY + (flipv ? (frame.Frame.Height - editorAnim.Frames[0].Frame.Height) : 0),
                             frame.Frame.Width, frame.Frame.Height, false, Transparency);

                if (chainLength >= 1)
                {
                    for (int i = 0; i < chainLength; i++)
                    {
                        var frameRingI = editorAnimRing1.Frames[0];
                        if (i + 1 % 1 == 0)
                        {
                            frameRingI = editorAnimRing1.Frames[0];
                        }
                        else if (i + 1 % 2 == 0)
                        {
                            frameRingI = editorAnimRing2.Frames[0];
                        }
                        else if (i + 1 % 3 == 0)
                        {
                            frameRingI = editorAnimRing3.Frames[0];
                        }
                        else
                        {
                            frameRingI = editorAnimRing1.Frames[0];
                        }

                        d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameRingI),
                                     x + frameRingI.Frame.PivotX + frame.Frame.Width + frameRingI.Frame.Width * (i),
                                     y + frameRingI.Frame.PivotY,
                                     frameRingI.Frame.Width, frameRingI.Frame.Height, false, Transparency);
                    }
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameBall),
                                 x + frameBall.Frame.PivotX + frame.Frame.Width + frameRing1.Frame.Width * (chainLength + 1),
                                 y + frameBall.Frame.PivotY + (flipv ? (frameBall.Frame.Height - editorAnimBall.Frames[0].Frame.Height) : 0),
                                 frameBall.Frame.Width, frameBall.Frame.Height, false, Transparency);
                }
            }
        }
Пример #6
0
        public override void Draw(Structures.EntityRenderProp properties)
        {
            Methods.Draw.GraphicsHandler d = properties.Graphics;
            SceneEntity entity             = properties.Object;

            Classes.Scene.Sets.EditorEntity e = properties.EditorObject;
            int x                  = properties.X;
            int y                  = properties.Y;
            int Transparency       = properties.Transparency;
            int index              = properties.Index;
            int previousChildCount = properties.PreviousChildCount;
            int platformAngle      = properties.PlatformAngle;

            Methods.Entities.EntityAnimator Animation = properties.Animations;
            bool selected    = properties.isSelected;
            int  type        = (int)entity.attributesMap["type"].ValueEnum;
            bool fliph       = false;
            bool flipv       = false;
            var  editorAnim  = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("BigSqueeze", d.DevicePanel, 0, -1, fliph, flipv, false);
            var  editorAnim2 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("BigSqueeze", d.DevicePanel, 0, -1, true, flipv, false);
            var  editorAnim3 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("BigSqueeze", d.DevicePanel, 1, -1, fliph, flipv, false);
            var  editorAnim4 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("BigSqueeze", d.DevicePanel, 2, -1, fliph, flipv, false);
            var  editorAnim5 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("BigSqueeze", d.DevicePanel, 3, -1, fliph, flipv, false);
            var  editorAnim6 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("BigSqueeze", d.DevicePanel, 4, -1, fliph, flipv, false);
            var  editorAnim7 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("BigSqueeze", d.DevicePanel, 4, -1, true, flipv, false);
            var  editorAnim8 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("BigSqueeze", d.DevicePanel, 5, -1, true, flipv, false);
            var  editorAnim9 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("EditorIcons2", d.DevicePanel, 0, 14, fliph, flipv, false);

            if (editorAnim != null && editorAnim.Frames.Count != 0 && editorAnim2 != null && editorAnim2.Frames.Count != 0 && editorAnim3 != null && editorAnim3.Frames.Count != 0 && editorAnim4 != null && editorAnim4.Frames.Count != 0 && editorAnim5 != null && editorAnim5.Frames.Count != 0 && editorAnim6 != null && editorAnim6.Frames.Count != 0 && editorAnim7 != null && editorAnim7.Frames.Count != 0 && editorAnim8 != null && editorAnim8.Frames.Count != 0 && editorAnim9 != null && editorAnim9.Frames.Count != 0)
            {
                var wall1            = editorAnim.Frames[0];
                var wall2            = editorAnim.Frames[1];
                var wall3            = editorAnim.Frames[2];
                var wall1r           = editorAnim2.Frames[0];
                var wall2r           = editorAnim2.Frames[1];
                var wall3r           = editorAnim2.Frames[2];
                var electroMagBase   = editorAnim3.Frames[0];
                var electroMagDome   = editorAnim4.Frames[Animation.index];
                var electroMagProngs = editorAnim5.Frames[Animation.index];
                var wheels           = editorAnim6.Frames[Animation.index];
                var wheelsr          = editorAnim7.Frames[Animation.index];
                var shocking         = editorAnim8.Frames[Animation.index];
                var frame            = editorAnim9.Frames[0];

                Animation.ProcessAnimation(electroMagDome.Entry.SpeedMultiplyer, electroMagDome.Entry.Frames.Count, electroMagDome.Frame.Delay);
                Animation.ProcessAnimation(electroMagProngs.Entry.SpeedMultiplyer, electroMagProngs.Entry.Frames.Count, electroMagProngs.Frame.Delay);
                Animation.ProcessAnimation(wheels.Entry.SpeedMultiplyer, wheels.Entry.Frames.Count, wheels.Frame.Delay);
                Animation.ProcessAnimation(wheelsr.Entry.SpeedMultiplyer, wheelsr.Entry.Frames.Count, wheelsr.Frame.Delay);
                //Animation.ProcessAnimation(shocking.Entry.SpeedMultiplyer, shocking.Entry.Frames.Count, shocking.Frame.Delay);

                if (type == 2)
                {
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(wall1),
                                 x + wall1.Frame.PivotX - (fliph ? (wall1.Frame.Width - editorAnim.Frames[0].Frame.Width) : 0),
                                 y + wall1.Frame.PivotY + (flipv ? (wall1.Frame.Height - editorAnim.Frames[0].Frame.Height) : 0),
                                 wall1.Frame.Width, wall1.Frame.Height, false, Transparency);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(wall2),
                                 x + wall2.Frame.PivotX - (fliph ? (wall2.Frame.Width - editorAnim.Frames[1].Frame.Width) : 0),
                                 y + wall2.Frame.PivotY + (flipv ? (wall2.Frame.Height - editorAnim.Frames[1].Frame.Height) : 0),
                                 wall2.Frame.Width, wall2.Frame.Height, false, Transparency);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(wall3),
                                 x + wall3.Frame.PivotX - (fliph ? (wall3.Frame.Width - editorAnim.Frames[2].Frame.Width) : 0),
                                 y + wall3.Frame.PivotY + (flipv ? (wall3.Frame.Height - editorAnim.Frames[2].Frame.Height) : 0),
                                 wall3.Frame.Width, wall3.Frame.Height, false, Transparency);
                }
                else if (type == 3)
                {
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(wall1r),
                                 x + wall1r.Frame.PivotX,
                                 y + wall1r.Frame.PivotY + (flipv ? (wall1r.Frame.Height - editorAnim2.Frames[0].Frame.Height) : 0),
                                 wall1r.Frame.Width, wall1r.Frame.Height, false, Transparency);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(wall2r),
                                 x + wall2r.Frame.PivotX + -wall2r.Frame.PivotX + 23,
                                 y + wall2r.Frame.PivotY + (flipv ? (wall2r.Frame.Height - editorAnim2.Frames[1].Frame.Height) : 0),
                                 wall2.Frame.Width, wall2.Frame.Height, false, Transparency);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(wall3r),
                                 x + wall3r.Frame.PivotX + -wall3r.Frame.PivotX + 55,
                                 y + wall3r.Frame.PivotY + (flipv ? (wall3r.Frame.Height - editorAnim2.Frames[2].Frame.Height) : 0),
                                 wall3r.Frame.Width, wall3r.Frame.Height, false, Transparency);
                }

                else if (type == 1)
                {
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(electroMagBase),
                                 x + electroMagBase.Frame.PivotX - (fliph ? (electroMagBase.Frame.Width - editorAnim3.Frames[0].Frame.Width) : 0),
                                 y + electroMagBase.Frame.PivotY + (flipv ? (electroMagBase.Frame.Height - editorAnim3.Frames[0].Frame.Height) : 0),
                                 electroMagBase.Frame.Width, electroMagBase.Frame.Height, false, Transparency);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(electroMagDome),
                                 x + electroMagDome.Frame.PivotX - (fliph ? (electroMagDome.Frame.Width - editorAnim4.Frames[0].Frame.Width) : 0),
                                 y + electroMagDome.Frame.PivotY + (flipv ? (electroMagDome.Frame.Height - editorAnim4.Frames[0].Frame.Height) : 0),
                                 electroMagDome.Frame.Width, electroMagDome.Frame.Height, false, Transparency);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(electroMagProngs),
                                 x + electroMagProngs.Frame.PivotX - (fliph ? (electroMagProngs.Frame.Width - editorAnim5.Frames[0].Frame.Width) : 0),
                                 y + electroMagProngs.Frame.PivotY + (flipv ? (electroMagProngs.Frame.Height - editorAnim5.Frames[0].Frame.Height) : 0),
                                 electroMagProngs.Frame.Width, electroMagProngs.Frame.Height, false, Transparency);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(wheels),
                                 x + wheels.Frame.PivotX - (fliph ? (wheels.Frame.Width - editorAnim6.Frames[0].Frame.Width) : 0) - 20,
                                 y + wheels.Frame.PivotY + (flipv ? (wheels.Frame.Height - editorAnim6.Frames[0].Frame.Height) : 0),
                                 wheels.Frame.Width, wheels.Frame.Height, false, Transparency);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(wheelsr),
                                 x + wheelsr.Frame.PivotX + 20,
                                 y + wheelsr.Frame.PivotY + (flipv ? (wheelsr.Frame.Height - editorAnim7.Frames[0].Frame.Height) : 0),
                                 wheelsr.Frame.Width, wheelsr.Frame.Height, false, Transparency);

                    /*
                     * if (Editor.Instance.ShowAnimations.Checked && Properties.EditorState.Default.annimationsChecked)
                     * {
                     *
                     *  d.DrawBitmap(new GraphicsHandler.GraphicsInfo(shocking),
                     *      x + shocking.Frame.PivotX,
                     *      y + shocking.Frame.PivotY + (flipv ? (shocking.Frame.Height - editorAnim8.Frames[0].Frame.Height) : 0),
                     *      shocking.Frame.Width, shocking.Frame.Height, false, Transparency);
                     *
                     * }
                     */

                    // TODO: Make sure this does not crash the editor.
                }

                else if (type == 0)
                {
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame),
                                 x + frame.Frame.PivotX - (fliph ? (frame.Frame.Width - editorAnim.Frames[0].Frame.Width) : 0),
                                 y + frame.Frame.PivotY + (flipv ? (frame.Frame.Height - editorAnim.Frames[0].Frame.Height) : 0),
                                 frame.Frame.Width, frame.Frame.Height, false, Transparency);
                }
            }
        }
Пример #7
0
        public override void Draw(Structures.EntityRenderProp properties)
        {
            Methods.Draw.GraphicsHandler d = properties.Graphics;
            SceneEntity entity             = properties.Object;

            Classes.Scene.Sets.EditorEntity e = properties.EditorObject;
            int x                  = properties.X;
            int y                  = properties.Y;
            int Transparency       = properties.Transparency;
            int index              = properties.Index;
            int previousChildCount = properties.PreviousChildCount;
            int platformAngle      = properties.PlatformAngle;

            Methods.Entities.EntityAnimator Animation = properties.Animations;
            bool selected            = properties.isSelected;
            var  editorAnim          = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("MegaOctus", d.DevicePanel, 0, 0, false, false, false);
            var  editorAnimEye       = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("MegaOctus", d.DevicePanel, 0, 1, false, false, false);
            var  editorAnimPupil     = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("MegaOctus", d.DevicePanel, 0, 2, false, false, false);
            var  editorAnimHeadJoint = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("MegaOctus", d.DevicePanel, 0, 6, false, false, false);
            var  editorAnimNose      = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("MegaOctus", d.DevicePanel, 1, 0, false, false, false);
            var  editorAnimBolt      = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("MegaOctus", d.DevicePanel, 2, 0, false, false, false);

            if (editorAnim != null && editorAnim.Frames.Count != 0 && editorAnimEye != null && editorAnimEye.Frames.Count != 0 && editorAnimPupil != null && editorAnimPupil.Frames.Count != 0 && editorAnimHeadJoint != null && editorAnimHeadJoint.Frames.Count != 0 && editorAnimNose != null && editorAnimNose.Frames.Count != 0 && editorAnimBolt != null && editorAnimBolt.Frames.Count != 0)
            {
                var frame      = editorAnim.Frames[0];
                var frameEye   = editorAnimEye.Frames[0];
                var framePupil = editorAnimPupil.Frames[0];
                var frameNose  = editorAnimNose.Frames[0];
                var frameJoint = editorAnimHeadJoint.Frames[0];
                var frameBolt  = editorAnimBolt.Frames[0];

                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame),
                             x + frame.Frame.PivotX,
                             y + frame.Frame.PivotY,
                             frame.Frame.Width, frame.Frame.Height, false, Transparency);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameBolt),
                             x + frameBolt.Frame.PivotX,
                             y + frameBolt.Frame.PivotY,
                             frameBolt.Frame.Width, frameBolt.Frame.Height, false, Transparency);

                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameEye),
                             x + frameEye.Frame.PivotX + 35,
                             y + frameEye.Frame.PivotY,
                             frameEye.Frame.Width, frameEye.Frame.Height, false, Transparency);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(framePupil),
                             x + framePupil.Frame.PivotX + 40,
                             y + framePupil.Frame.PivotY,
                             framePupil.Frame.Width, framePupil.Frame.Height, false, Transparency);


                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameEye),
                             x + frameEye.Frame.PivotX + 20,
                             y + frameEye.Frame.PivotY,
                             frameEye.Frame.Width, frameEye.Frame.Height, false, Transparency);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(framePupil),
                             x + framePupil.Frame.PivotX + 20,
                             y + framePupil.Frame.PivotY,
                             framePupil.Frame.Width, framePupil.Frame.Height, false, Transparency);



                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameNose),
                             x + frameNose.Frame.PivotX,
                             y + frameNose.Frame.PivotY,
                             frameNose.Frame.Width, frameNose.Frame.Height, false, Transparency);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameJoint),
                             x + frameJoint.Frame.PivotX,
                             y + frameJoint.Frame.PivotY,
                             frameJoint.Frame.Width, frameJoint.Frame.Height, false, Transparency);
            }
        }
Пример #8
0
        public override void Draw(Structures.EntityRenderProp properties)
        {
            Methods.Draw.GraphicsHandler d = properties.Graphics;
            SceneEntity entity             = properties.Object;

            Classes.Scene.Sets.EditorEntity e = properties.EditorObject;
            int x                  = properties.X;
            int y                  = properties.Y;
            int Transparency       = properties.Transparency;
            int index              = properties.Index;
            int previousChildCount = properties.PreviousChildCount;
            int platformAngle      = properties.PlatformAngle;

            Methods.Entities.EntityAnimator Animation = properties.Animations;
            bool selected  = properties.isSelected;
            bool fliph     = false;
            bool flipv     = false;
            int  type      = (int)entity.attributesMap["type"].ValueUInt8;
            int  blockID   = 0;
            int  randomNum = entity.SlotID % 3;

            switch (type)
            {
            case 4:
                blockID = randomNum;
                break;

            case 5:

                blockID = randomNum + 3;
                break;
            }
            var editorAnim     = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("LaundroMobile", d.DevicePanel, 0, 0, fliph, flipv, false);
            var editorAnim2    = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("LaundroMobile", d.DevicePanel, 9, blockID, fliph, flipv, false);
            var editorAnim3    = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("LaundroMobile", d.DevicePanel, 1, -1, fliph, flipv, false);
            var editorAnim4    = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("LaundroMobile", d.DevicePanel, 3, -1, fliph, flipv, false);
            var editorAnim5    = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("LaundroMobile", d.DevicePanel, 8, -1, fliph, flipv, false);
            var editorAnim6    = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("LaundroMobile", d.DevicePanel, 2, -1, fliph, flipv, false);
            var editorAnim7    = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("LaundroMobile", d.DevicePanel, 0, 3, fliph, flipv, false);
            var editorAnim8    = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("LaundroMobile", d.DevicePanel, 0, 2, fliph, flipv, false);
            var editorAnim9    = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("LaundroMobile", d.DevicePanel, 0, 4, fliph, flipv, false);
            var editorAnimIcon = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("EditorIcons2", d.DevicePanel, 0, 14, false, false, false);

            if (editorAnim != null && editorAnim.Frames.Count != 0 && editorAnim2 != null && editorAnim2.Frames.Count != 0 && editorAnim3 != null && editorAnim3.Frames.Count != 0 && editorAnim4 != null && editorAnim4.Frames.Count != 0 && editorAnim5 != null && editorAnim5.Frames.Count != 0 && editorAnim6 != null && editorAnim6.Frames.Count != 0 && editorAnim7 != null && editorAnim7.Frames.Count != 0 && editorAnim8 != null && editorAnim8.Frames.Count != 0 && editorAnim9 != null && editorAnim9.Frames.Count != 0)
            {
                var frame                    = editorAnim.Frames[0];
                var frameBlock               = editorAnim2.Frames[0];
                var frameLaundry             = editorAnim3.Frames[Animation.index];
                var framePropel              = editorAnim4.Frames[Animation.index];
                var frameBomb                = editorAnim5.Frames[Animation.index2];
                var frameLaundryCenter       = editorAnim6.Frames[Animation.index];
                var frameLaundryCenterBottom = editorAnim7.Frames[0];
                var frameLaundryCenterTop    = editorAnim8.Frames[0];
                var frameRockets             = editorAnim9.Frames[0];


                if (type == 0)
                {
                    Animation.ProcessAnimation(framePropel.Entry.SpeedMultiplyer, framePropel.Entry.Frames.Count, framePropel.Frame.Delay);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameRockets),
                                 x + frameRockets.Frame.PivotX - 4,
                                 y + frameRockets.Frame.PivotY - 27,
                                 frameRockets.Frame.Width, frameRockets.Frame.Height, false, Transparency);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame),
                                 x + frame.Frame.PivotX,
                                 y + frame.Frame.PivotY,
                                 frame.Frame.Width, frame.Frame.Height, false, Transparency);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(framePropel),
                                 x + framePropel.Frame.PivotX,
                                 y + framePropel.Frame.PivotY,
                                 framePropel.Frame.Width, framePropel.Frame.Height, false, Transparency);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameRockets),
                                 x + frameRockets.Frame.PivotX - 18,
                                 y + frameRockets.Frame.PivotY + 20,
                                 frameRockets.Frame.Width, frameRockets.Frame.Height, false, Transparency);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameRockets),
                                 x + frameRockets.Frame.PivotX - 18,
                                 y + frameRockets.Frame.PivotY - 27,
                                 frameRockets.Frame.Width, frameRockets.Frame.Height, false, Transparency);
                }
                else if (type == 1)
                {
                    Animation.ProcessAnimation3(frameBomb.Entry.SpeedMultiplyer, frameBomb.Entry.Frames.Count, frameBomb.Frame.Delay);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameBomb),
                                 x + frameBomb.Frame.PivotX,
                                 y + frameBomb.Frame.PivotY,
                                 frameBomb.Frame.Width, frameBomb.Frame.Height, false, Transparency);
                }
                else if (type == 2)
                {
                    Animation.ProcessAnimation2(frameLaundry.Entry.SpeedMultiplyer, frameLaundry.Entry.Frames.Count, frameLaundry.Frame.Delay);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameLaundry),
                                 x + frameLaundry.Frame.PivotX,
                                 y + frameLaundry.Frame.PivotY + 16,
                                 frameLaundry.Frame.Width, frameLaundry.Frame.Height, false, Transparency);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameLaundry),
                                 x + frameLaundry.Frame.PivotX,
                                 y + frameLaundry.Frame.PivotY + frameLaundry.Frame.PivotY + 16,
                                 frameLaundry.Frame.Width, frameLaundry.Frame.Height, false, Transparency);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameLaundry),
                                 x + frameLaundry.Frame.PivotX,
                                 y + frameLaundry.Frame.PivotY + -(frameLaundry.Frame.PivotY * 2) + 16,
                                 frameLaundry.Frame.Width, frameLaundry.Frame.Height, false, Transparency);
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameLaundry),
                                 x + frameLaundry.Frame.PivotX,
                                 y - frameLaundry.Frame.PivotY + -(frameLaundry.Frame.PivotY * 2) + 16,
                                 frameLaundry.Frame.Width, frameLaundry.Frame.Height, false, Transparency);

                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameLaundryCenterBottom),
                                 x + frameLaundryCenterBottom.Frame.PivotX,
                                 y + frameLaundryCenterBottom.Frame.PivotY + frameLaundryCenterBottom.Frame.PivotY * 3 + 16,
                                 frameLaundryCenterBottom.Frame.Width, frameLaundryCenterBottom.Frame.Height, false, Transparency);

                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameLaundryCenterTop),
                                 x + frameLaundryCenterTop.Frame.PivotX,
                                 y + frameLaundryCenterTop.Frame.PivotY,
                                 frameLaundryCenterTop.Frame.Width, frameLaundryCenterTop.Frame.Height, false, Transparency);

                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameLaundryCenter),
                                 x + frameLaundryCenter.Frame.PivotX,
                                 y + frameLaundryCenter.Frame.PivotY + frameLaundryCenter.Frame.PivotY * 2 + 16,
                                 frameLaundryCenter.Frame.Width, frameLaundryCenter.Frame.Height, false, Transparency);
                }
                else if (type == 4 || type == 5)
                {
                    d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameBlock),
                                 x + frameBlock.Frame.PivotX,
                                 y + frameBlock.Frame.PivotY,
                                 frameBlock.Frame.Width, frameBlock.Frame.Height, false, Transparency);
                }
                else
                {
                    if (editorAnimIcon != null && editorAnimIcon.Frames.Count != 0)
                    {
                        var frameIcon = editorAnimIcon.Frames[0];
                        d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frameIcon), x + frameIcon.Frame.PivotX, y + frameIcon.Frame.PivotY,
                                     frameIcon.Frame.Width, frameIcon.Frame.Height, false, Transparency);
                    }
                }
            }
        }
        public override void Draw(Structures.EntityRenderProp properties)
        {
            Methods.Draw.GraphicsHandler d = properties.Graphics;
            SceneEntity entity             = properties.Object;

            Classes.Scene.Sets.EditorEntity e = properties.EditorObject;
            int x                  = properties.X;
            int y                  = properties.Y;
            int Transparency       = properties.Transparency;
            int index              = properties.Index;
            int previousChildCount = properties.PreviousChildCount;
            int platformAngle      = properties.PlatformAngle;

            Methods.Entities.EntityAnimator Animation = properties.Animations;
            bool selected     = properties.isSelected;
            bool fliph        = false;
            bool flipv        = false;
            var  editorAnim   = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("Train", d.DevicePanel, 0, -1, fliph, flipv, false);
            var  editorAnim2  = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("Train", d.DevicePanel, 1, -1, fliph, flipv, false);
            var  editorAnim3  = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("Train", d.DevicePanel, 2, -1, fliph, flipv, false);
            var  editorAnim4  = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("Train", d.DevicePanel, 5, 0, false, false, false);
            var  editorAnim5  = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("Train", d.DevicePanel, 7, -1, fliph, flipv, false);
            var  editorAnim6  = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("Train", d.DevicePanel, 6, 0, false, false, false);
            var  editorAnim7  = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("Train", d.DevicePanel, 3, -1, fliph, flipv, false);
            var  editorAnim8  = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("Train", d.DevicePanel, 4, -1, fliph, flipv, false);
            var  editorAnim9  = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("Train", d.DevicePanel, 10, -1, fliph, flipv, false);
            var  editorAnim10 = Controls.Editor.MainEditor.Instance.EntityDrawing.LoadAnimation2("Train", d.DevicePanel, 12, 0, fliph, flipv, false);

            if (editorAnim != null && editorAnim.Frames.Count != 0 && editorAnim2 != null && editorAnim2.Frames.Count != 0 && editorAnim3 != null && editorAnim3.Frames.Count != 0 && editorAnim4 != null && editorAnim4.Frames.Count != 0 && editorAnim5 != null && editorAnim5.Frames.Count != 0 && editorAnim6 != null && editorAnim6.Frames.Count != 0 && editorAnim7 != null && editorAnim7.Frames.Count != 0 && editorAnim8 != null && editorAnim8.Frames.Count != 0 && editorAnim9 != null && editorAnim9.Frames.Count != 0 && editorAnim10 != null && editorAnim10.Frames.Count != 0)
            {
                var frame   = editorAnim.Frames[0];
                var frame2  = editorAnim2.Frames[0];
                var frame3  = editorAnim2.Frames[1];
                var frame4  = editorAnim3.Frames[Animation.index2];
                var frame5  = editorAnim4.Frames[0];
                var frame6  = editorAnim5.Frames[Animation.index];
                var frame7  = editorAnim6.Frames[0];
                var frame8  = editorAnim7.Frames[0];
                var frame9  = editorAnim7.Frames[1];
                var frame10 = editorAnim8.Frames[0];
                var frame11 = editorAnim8.Frames[1];
                var frame12 = editorAnim9.Frames[Animation.index3];
                var frame13 = editorAnim10.Frames[0];

                Animation.ProcessAnimation(frame6.Entry.SpeedMultiplyer, frame6.Entry.Frames.Count, frame6.Frame.Delay);
                Animation.ProcessAnimation2(frame4.Entry.SpeedMultiplyer, frame4.Entry.Frames.Count, frame4.Frame.Delay);
                Animation.ProcessAnimation3(frame12.Entry.SpeedMultiplyer, frame12.Entry.Frames.Count, frame12.Frame.Delay);

                //Eggman
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame12),
                             x + frame12.Frame.PivotX,
                             y + frame12.Frame.PivotY,
                             frame12.Frame.Width, frame12.Frame.Height, false, Transparency);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame13),
                             x + frame13.Frame.PivotX,
                             y + frame13.Frame.PivotY,
                             frame13.Frame.Width, frame13.Frame.Height, false, Transparency);

                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame),
                             x + frame.Frame.PivotX,
                             y + frame.Frame.PivotY,
                             frame.Frame.Width, frame.Frame.Height, false, Transparency);

                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame2),
                             x + frame2.Frame.PivotX - 104,
                             y + frame2.Frame.PivotY + 56,
                             frame2.Frame.Width, frame2.Frame.Height, false, Transparency);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame2),
                             x + frame2.Frame.PivotX - 30,
                             y + frame2.Frame.PivotY + 56,
                             frame2.Frame.Width, frame2.Frame.Height, false, Transparency);

                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame3),
                             x + frame3.Frame.PivotX - 104,
                             y + frame3.Frame.PivotY + 56,
                             frame3.Frame.Width, frame3.Frame.Height, false, Transparency);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame3),
                             x + frame3.Frame.PivotX - 30,
                             y + frame3.Frame.PivotY + 56,
                             frame3.Frame.Width, frame3.Frame.Height, false, Transparency);

                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame4),
                             x + frame4.Frame.PivotX + 22,
                             y + frame4.Frame.PivotY + 74,
                             frame4.Frame.Width, frame4.Frame.Height, false, Transparency);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame4),
                             x + frame4.Frame.PivotX + 84,
                             y + frame4.Frame.PivotY + 74,
                             frame4.Frame.Width, frame4.Frame.Height, false, Transparency);

                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame5),
                             x + frame5.Frame.PivotX,
                             y + frame5.Frame.PivotY,
                             frame5.Frame.Width, frame5.Frame.Height, false, Transparency);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame6),
                             x + frame6.Frame.PivotX,
                             y + frame6.Frame.PivotY,
                             frame6.Frame.Width, frame6.Frame.Height, false, Transparency);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame7),
                             x + frame7.Frame.PivotX,
                             y + frame7.Frame.PivotY,
                             frame7.Frame.Width, frame7.Frame.Height, false, Transparency);

                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame9),
                             x + frame9.Frame.PivotX - 46,
                             y + frame9.Frame.PivotY + 54,
                             frame9.Frame.Width, frame9.Frame.Height, false, Transparency);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame8),
                             x + frame8.Frame.PivotX - 122,
                             y + frame8.Frame.PivotY + 54,
                             frame8.Frame.Width, frame8.Frame.Height, false, Transparency);

                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame10),
                             x + frame10.Frame.PivotX + 7,
                             y + frame10.Frame.PivotY,
                             frame10.Frame.Width, frame10.Frame.Height, false, Transparency);
                d.DrawBitmap(new Methods.Draw.GraphicsHandler.GraphicsInfo(frame11),
                             x + frame11.Frame.PivotX,
                             y + frame11.Frame.PivotY,
                             frame11.Frame.Width, frame11.Frame.Height, false, Transparency);
            }
        }