Add Panel, ProgressBar, RadioButton, and Slider UI controls and test windows

This commit is contained in:
Stone_Red
2026-06-16 12:29:04 +02:00
parent 8ecca53881
commit 99c98e74a2
6 changed files with 438 additions and 18 deletions
+24
View File
@@ -0,0 +1,24 @@
using RemSox.UI.GUI.Rendering;
using System.Drawing;
namespace RemSox.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,
}
};
}
}