mirror of
https://github.com/Stone-Red-Code/RemSox.git
synced 2026-09-04 09:06:23 +02:00
23 lines
605 B
C#
23 lines
605 B
C#
using RemSox.Shared.UI.GUI.Rendering;
|
|
|
|
namespace RemSox.Kernel.UI.GUI.UIEelements.Controls;
|
|
|
|
public class Panel() : Control("Panel")
|
|
{
|
|
public override IEnumerable<RenderCommand> ToPrimitives(int windowId)
|
|
{
|
|
yield return new RenderCommand
|
|
{
|
|
WindowId = windowId,
|
|
ElementId = PrimitiveId(0),
|
|
Type = RenderCommandType.DrawFilledRect,
|
|
Position = Position,
|
|
Properties = new Dictionary<string, object?>
|
|
{
|
|
["Color"] = BackgroundColor,
|
|
["Size"] = Size,
|
|
}
|
|
};
|
|
}
|
|
}
|