mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-25 00:38:53 -04:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
27 lines
380 B
C#
27 lines
380 B
C#
namespace Editor;
|
|
|
|
|
|
class LogoWidget : Widget
|
|
{
|
|
public LogoWidget( Widget parent ) : base( parent )
|
|
{
|
|
}
|
|
|
|
protected override Vector2 SizeHint()
|
|
{
|
|
return new Vector2( 32 );
|
|
}
|
|
|
|
protected override void OnPaint()
|
|
{
|
|
Paint.ClearPen();
|
|
Paint.ClearBrush();
|
|
Paint.SetDefaultFont();
|
|
|
|
var r = LocalRect;
|
|
r.Width = r.Height;
|
|
|
|
Paint.Draw( r, "logo_rounded.png" );
|
|
}
|
|
}
|