Files
sbox-public/game/addons/tools/Code/GraphicsItems/DropShadow.cs
s&box team 71f266059a Open source release
This commit imports the C# engine code and game files, excluding C++ source code.

[Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
2025-11-24 09:05:18 +00:00

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 );
}
}