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

            Drawing.OnPreReset += DrawingOnOnPreReset;
            Drawing.OnPostReset += DrawingOnOnPostReset;
            AppDomain.CurrentDomain.DomainUnload += CurrentDomainOnDomainUnload;
            AppDomain.CurrentDomain.ProcessExit += CurrentDomainOnDomainUnload;
        }
Example #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;
 }
Example #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;
 }
Example #5
0
        public HpBarIndicator()
        {
            DxLine = new Line(DxDevice)
            {
                Width = 9
            };

            Drawing.OnPreReset  += DrawingOnOnPreReset;
            Drawing.OnPostReset += DrawingOnOnPostReset;
            AppDomain.CurrentDomain.DomainUnload += CurrentDomainOnDomainUnload;
            AppDomain.CurrentDomain.ProcessExit  += CurrentDomainOnDomainUnload;
        }
Example #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;
 }
Example #7
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);

        }
Example #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;
        }
Example #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;
 }
Example #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);
        }
Example #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();
 }
Example #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();
 }
Example #13
0
        static Minimize()
        {
            Line = new Line(Drawing.Direct3DDevice);

            Game.OnWndProc += OnGameWndProc;
        }
Example #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 };
 }
Example #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;
 }
Example #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;
 }
Example #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;
 }