Exemplo n.º 1
0
 public Image(string path, Point position, int rotation, Align align, bool show)
 {
     Id           = DX9Overlay.ImageCreate(path, position.X, position.Y, rotation, (int)align, show);
     _position    = position;
     _rotation    = rotation;
     _align       = align;
     base.Visible = show;
 }
Exemplo n.º 2
0
 public Line(Point startPosition, Point endPosition, int width, Color color, bool show)
 {
     Id             = DX9Overlay.LineCreate(startPosition.X, startPosition.Y, endPosition.X, endPosition.Y, width, (uint)color.ToArgb(), show);
     _startPosition = startPosition;
     _endPosition   = endPosition;
     _width         = width;
     _color         = color;
     base.Visible   = show;
 }
 public TextLabel(string font, int size, TypeFace type, Point position, Color color, string text, bool shadow, bool show)
 {
     Id           = DX9Overlay.TextCreate(font, size, type.HasFlag(TypeFace.BOLD), type.HasFlag(TypeFace.ITALIC), position.X, position.Y, (uint)color.ToArgb(), text, shadow, show);
     _text        = text;
     _shadow      = shadow;
     base.Visible = show;
     _color       = color;
     _position    = position;
 }
Exemplo n.º 4
0
 public Box(Rectangle rectangle, Color color, bool show, bool borderShown = false, int borderHeight = 0, Color borderColor = default(Color))
 {
     Id = DX9Overlay.BoxCreate(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, (uint)color.ToArgb(), show);
     if (borderHeight != 0)
     {
         DX9Overlay.BoxSetBorder(Id, borderHeight, borderShown);
         _borderHeight = borderHeight;
         _borderShown  = borderShown;
     }
     if (borderColor != default(Color))
     {
         DX9Overlay.BoxSetBorderColor(Id, (uint)borderColor.ToArgb());
         _borderColor = borderColor;
     }
     _rectangle   = rectangle;
     base.Visible = show;
     _color       = color;
 }
Exemplo n.º 5
0
 public override void Destroy()
 {
     DX9Overlay.LineDestroy(Id);
     base.Destroy();
 }
 public void TextUpdate(String font, int size, Boolean bold, Boolean italic)
 {
     DX9Overlay.TextUpdate(Id, font, size, bold, italic);
 }