diff --git a/MicroUI.cs/MicroUI.cs b/MicroUI.cs/MicroUI.cs index ac5f425..30e2c6c 100644 --- a/MicroUI.cs/MicroUI.cs +++ b/MicroUI.cs/MicroUI.cs @@ -277,7 +277,7 @@ namespace MicroUI public class MuTextCommand : MuCommand { - public object? Font { get; } // TODO: Idk how this works yet + public object? Font { get; } public MuVec2 Position { get; } public MuColor Color { get; } public string Text { get; } @@ -538,7 +538,7 @@ namespace MicroUI // Draw border if alpha > 0 if (ctx.Style.Colors[(int)ColorType.Border].A > 0) { - MuCommandList.DrawBox(ctx, ExpandRect(rect, 1), ctx.Style.Colors[(int)ColorType.Border]); // TODO: Implement DrawBox + MuCommandList.DrawBox(ctx, ExpandRect(rect, 1), ctx.Style.Colors[(int)ColorType.Border]); } } @@ -612,7 +612,7 @@ namespace MicroUI ctx.NextHoverRoot.ZIndex < ctx.LastZIndex && ctx.NextHoverRoot.ZIndex >= 0) { - BringToFront(ctx, ctx.NextHoverRoot); // TODO: Implement BringToFront + BringToFront(ctx, ctx.NextHoverRoot); } ctx.KeyPressed = 0; diff --git a/MicroUI.cs/Program.cs b/MicroUI.cs/Program.cs index 2053df5..959ddff 100644 --- a/MicroUI.cs/Program.cs +++ b/MicroUI.cs/Program.cs @@ -73,6 +73,7 @@ class Program break; case MuClipCommand clipCmd: //Console.Write($" | Clip: ({clipCmd.Rect.X},{clipCmd.Rect.Y},{clipCmd.Rect.W},{clipCmd.Rect.H})"); + Raylib.BeginScissorMode(clipCmd.Rect.X, clipCmd.Rect.Y, clipCmd.Rect.W, clipCmd.Rect.H); break; case MuJumpCommand jumpCmd: //Console.Write($" | Jump to: {jumpCmd.DestinationIndex}");