protected override void DoDraw(DrawingHandleScreen handle, UIBox2 box) { var(btl, btt, btr, btb) = BorderThickness; if (btl > 0) { handle.DrawRect(new UIBox2(box.Left, box.Top, box.Left + btl, box.Bottom), BorderColor); } if (btt > 0) { handle.DrawRect(new UIBox2(box.Left, box.Top, box.Right, box.Top + btt), BorderColor); } if (btr > 0) { handle.DrawRect(new UIBox2(box.Right - btr, box.Top, box.Right, box.Bottom), BorderColor); } if (btb > 0) { handle.DrawRect(new UIBox2(box.Left, box.Bottom - btb, box.Right, box.Bottom), BorderColor); } handle.DrawRect(BorderThickness.Deflate(box), BackgroundColor); }
protected override void DoDraw(DrawingHandleScreen handle, UIBox2 box) { handle.DrawRect(box, BackgroundColor); }