Exemplo n.º 1
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;
 }