mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-09-02 18:17:09 +02:00
26 lines
528 B
C#
26 lines
528 B
C#
using Robust.Shared.Maths;
|
|
|
|
namespace Robust.Client.Graphics.Drawing
|
|
{
|
|
public class StyleBoxFlat : StyleBox
|
|
{
|
|
public Color BackgroundColor { get; set; }
|
|
|
|
protected override void DoDraw(DrawingHandleScreen handle, UIBox2 box)
|
|
{
|
|
handle.DrawRect(box, BackgroundColor);
|
|
}
|
|
|
|
public StyleBoxFlat()
|
|
{
|
|
|
|
}
|
|
|
|
public StyleBoxFlat(StyleBoxFlat other)
|
|
: base(other)
|
|
{
|
|
BackgroundColor = other.BackgroundColor;
|
|
}
|
|
}
|
|
}
|