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; }
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 DaƱoTotal() { dxLine = new Line(dxDevice) { Width = 9 }; Drawing.OnPreReset += DrawingOnOnPreReset; Drawing.OnPostReset += DrawingOnOnPostReset; AppDomain.CurrentDomain.DomainUnload += CurrentDomainOnDomainUnload; AppDomain.CurrentDomain.ProcessExit += CurrentDomainOnDomainUnload; }
public HpBarIndicator() { DxLine = new Line(DxDevice) { Width = 9 }; Drawing.OnPreReset += DrawingOnOnPreReset; Drawing.OnPostReset += DrawingOnOnPostReset; AppDomain.CurrentDomain.DomainUnload += CurrentDomainOnDomainUnload; AppDomain.CurrentDomain.ProcessExit += CurrentDomainOnDomainUnload; }
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); }
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; }
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; }
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); }
/// <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(); }
/// <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(); }
static Minimize() { Line = new Line(Drawing.Direct3DDevice); Game.OnWndProc += OnGameWndProc; }
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 }; }
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; }
/// <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; }
/// <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; }