Beispiel #1
0
 public static void init()
 {
     dxLine = new Line(dxDevice)
     {
         Width = 9
     };
     Drawing.OnDraw     += OnDraw;
     Drawing.OnEndScene += OnEndScene;
 }
        public HpBarIndicator()
        {
            dxLine = new Line(dxDevice) { Width = 9 };

            Drawing.OnPreReset += DrawingOnOnPreReset;
            Drawing.OnPostReset += DrawingOnOnPostReset;
            AppDomain.CurrentDomain.DomainUnload += CurrentDomainOnDomainUnload;
            AppDomain.CurrentDomain.ProcessExit += CurrentDomainOnDomainUnload;
        }
Beispiel #3
0
 public Rectangle_Ex(int x, int y, int width, int height, ColorBGRA color, float border = 2)
 {
     X = x;
         Y = y;
         Width = width;
         Height = height;
         Color = color;
         this.border = border;
         _line = new SharpDX.Direct3D9.Line(Drawing.Direct3DDevice) { Width = border};
         Game.OnUpdate += Game_OnUpdate;
 }
Beispiel #4
0
 public DañoTotal()
 {
     dxLine = new Line(dxDevice)
     {
         Width = 9
     };
     Drawing.OnPreReset  += DrawingOnOnPreReset;
     Drawing.OnPostReset += DrawingOnOnPostReset;
     AppDomain.CurrentDomain.DomainUnload += CurrentDomainOnDomainUnload;
     AppDomain.CurrentDomain.ProcessExit  += CurrentDomainOnDomainUnload;
 }
Beispiel #5
0
        public HpBarIndicator()
        {
            DxLine = new Line(DxDevice)
            {
                Width = 9
            };

            Drawing.OnPreReset  += DrawingOnOnPreReset;
            Drawing.OnPostReset += DrawingOnOnPostReset;
            AppDomain.CurrentDomain.DomainUnload += CurrentDomainOnDomainUnload;
            AppDomain.CurrentDomain.ProcessExit  += CurrentDomainOnDomainUnload;
        }
Beispiel #6
0
 public Rectangle_Ex(int x, int y, int width, int height, ColorBGRA color, float border = 2)
 {
     X           = x;
     Y           = y;
     Width       = width;
     Height      = height;
     Color       = color;
     this.border = border;
     _line       = new SharpDX.Direct3D9.Line(Drawing.Direct3DDevice)
     {
         Width = border
     };
     Game.OnUpdate += Game_OnUpdate;
 }
        public DeathDraw()
        {
            dxLine = new Line(dxDevice) { Width = 9 };
            sprite = new Sprite(dxDevice);

            Drawing.OnPreReset += DrawingOnOnPreReset;
            Drawing.OnPostReset += DrawingOnOnPostReset;
            AppDomain.CurrentDomain.DomainUnload += CurrentDomainOnDomainUnload;
            AppDomain.CurrentDomain.ProcessExit += CurrentDomainOnDomainUnload;
            windowsH = dxDevice.Viewport.Height;
            windowsW = dxDevice.Viewport.Width;
            Console.WriteLine("Xtest: " + dxDevice.Viewport.Width + " : " + dxDevice.Viewport.Height);

        }
Beispiel #8
0
        static Header()
        {
            Line = new Line(Drawing.Direct3DDevice);
            _font = new Font(
                Drawing.Direct3DDevice,
                new FontDescription
                {
                    FaceName = "Calibri",
                    Height = 18,
                    OutputPrecision = FontPrecision.Default,
                    Quality = FontQuality.Default
                });

            Game.OnWndProc += OnGameWndProc;
        }
Beispiel #9
0
 public HpBarIndicator()
 {
     dxLine = new Line(dxDevice)
     {
         Width = 9
     };
     sprite  = new Sprite(dxDevice);
     suprise = Texture.FromMemory(
         Drawing.Direct3DDevice,
         (byte[])new ImageConverter().ConvertTo(LoadPicture("http://i.gyazo.com/b94246fcd45ead6c3e9a0f2a585bb655.png"), typeof(byte[])), 513, 744, 0,
         Usage.None, Format.A1, Pool.Managed, Filter.Default, Filter.Default, 0);
     Drawing.OnPreReset  += DrawingOnOnPreReset;
     Drawing.OnPostReset += DrawingOnOnPostReset;
     AppDomain.CurrentDomain.DomainUnload += CurrentDomainOnDomainUnload;
     AppDomain.CurrentDomain.ProcessExit  += CurrentDomainOnDomainUnload;
 }
Beispiel #10
0
        public DeathDraw()
        {
            dxLine = new Line(dxDevice)
            {
                Width = 9
            };
            sprite = new Sprite(dxDevice);

            Drawing.OnPreReset  += DrawingOnOnPreReset;
            Drawing.OnPostReset += DrawingOnOnPostReset;
            AppDomain.CurrentDomain.DomainUnload += CurrentDomainOnDomainUnload;
            AppDomain.CurrentDomain.ProcessExit  += CurrentDomainOnDomainUnload;
            windowsH = dxDevice.Viewport.Height;
            windowsW = dxDevice.Viewport.Width;
            //Console.WriteLine("Xtest: " + dxDevice.Viewport.Width + " : " + dxDevice.Viewport.Height);
        }
Beispiel #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Rectangle"/> class.
 /// </summary>
 /// <param name="x">The x.</param>
 /// <param name="y">The y.</param>
 /// <param name="width">The width.</param>
 /// <param name="height">The height.</param>
 /// <param name="color">The color.</param>
 public Rectangle(int x, int y, int width, int height, ColorBGRA color)
 {
     X = x;
     Y = y;
     Width = width;
     Height = height;
     Color = color;
     _line = new SharpDX.Direct3D9.Line(Device) { Width = height };
     Game.OnUpdate += Game_OnUpdate;
     SubscribeToResetEvents();
 }
Beispiel #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Line"/> class.
 /// </summary>
 /// <param name="start">The start.</param>
 /// <param name="end">The end.</param>
 /// <param name="width">The width.</param>
 /// <param name="color">The color.</param>
 public Line(Vector2 start, Vector2 end, int width, ColorBGRA color)
 {
     _line = new SharpDX.Direct3D9.Line(Device);
     Width = width;
     Color = color;
     Start = start;
     End = end;
     Game.OnUpdate += GameOnOnUpdate;
     SubscribeToResetEvents();
 }
Beispiel #13
0
        static Minimize()
        {
            Line = new Line(Drawing.Direct3DDevice);

            Game.OnWndProc += OnGameWndProc;
        }
Beispiel #14
0
 public Rectangle(int x, int y, int width, int height, ColorBGRA color)
 {
     X = x;
     Y = y;
     Width = width;
     Height = height;
     Color = color;
     _line = new SharpDX.Direct3D9.Line(Drawing.Direct3DDevice) { Width = height };
 }
Beispiel #15
0
 public Line(Vector2 start, Vector2 end, int width, ColorBGRA color)
 {
     _line = new SharpDX.Direct3D9.Line(Drawing.Direct3DDevice);
     Width = width;
     Color = color;
     _start = start;
     _end = end;
 }
Beispiel #16
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Rectangle" /> class.
 /// </summary>
 /// <param name="x">The x.</param>
 /// <param name="y">The y.</param>
 /// <param name="width">The width.</param>
 /// <param name="height">The height.</param>
 /// <param name="color">The color.</param>
 public Rectangle(int x, int y, int width, int height, ColorBGRA color)
 {
     this.X = x;
     this.Y = y;
     this.Width = width;
     this.Height = height;
     this.Color = color;
     this.line = new SharpDX.Direct3D9.Line(Device) { Width = height };
     Game.OnUpdate += this.RectangleOnUpdate;
 }
Beispiel #17
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="Line" /> class.
 /// </summary>
 /// <param name="start">The start.</param>
 /// <param name="end">The end.</param>
 /// <param name="width">The width.</param>
 /// <param name="color">The color.</param>
 public Line(Vector2 start, Vector2 end, int width, ColorBGRA color)
 {
     this.line = new SharpDX.Direct3D9.Line(Device);
     this.Width = width;
     this.Color = color;
     this.Start = start;
     this.End = end;
     Game.OnUpdate += this.LineOnUpdate;
 }