mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-19 05:48:07 -04:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
22 lines
343 B
C#
22 lines
343 B
C#
namespace Editor;
|
|
|
|
public class DropShadow : GraphicsItem
|
|
{
|
|
public DropShadow()
|
|
{
|
|
ZIndex = -1000;
|
|
}
|
|
|
|
protected override void OnPaint()
|
|
{
|
|
var rect = new Rect();
|
|
rect.Size = Size - 10;
|
|
|
|
Paint.ClearPen();
|
|
Paint.SetBrush( new Color( 0, 0, 0, 0.15f ) );
|
|
Paint.DrawRect( rect, 10.0f );
|
|
Paint.DrawRect( rect + 5, 20.0f );
|
|
|
|
}
|
|
}
|