From 6d768861ea90249f0d4efce1320ff664cfb148a8 Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Wed, 17 Jun 2026 01:41:28 +0200 Subject: [PATCH] Improve XML summary formatting in RenderCommandType and YesNtWindowStatements --- UI/GUI/Rendering/RenderCommandType.cs | 12 +++++++----- Utils/YesNtWindowStatements.cs | 24 +++++++++++++++--------- 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/UI/GUI/Rendering/RenderCommandType.cs b/UI/GUI/Rendering/RenderCommandType.cs index f147e92..dc6c4e0 100644 --- a/UI/GUI/Rendering/RenderCommandType.cs +++ b/UI/GUI/Rendering/RenderCommandType.cs @@ -1,12 +1,14 @@ namespace RemSox.UI.GUI.Rendering; /// -/// Render command opcodes, grouped by category: -/// 0x01–0x0F System/setup -/// 0x10–0x1F Window lifecycle -/// 0x20–0x2F Primitives lifecycle -/// 0x30–0x3F Primitives draw +/// Render command opcodes, grouped by category: +/// +/// 0x01–0x0F System/setup
+/// 0x10–0x1F Window lifecycle
+/// 0x20–0x2F Primitives lifecycle
+/// 0x30–0x3F Primitives draw
/// 0x40+ Future expansion +///
///
public enum RenderCommandType : byte { diff --git a/Utils/YesNtWindowStatements.cs b/Utils/YesNtWindowStatements.cs index fe99c2d..6ded799 100644 --- a/Utils/YesNtWindowStatements.cs +++ b/Utils/YesNtWindowStatements.cs @@ -15,21 +15,27 @@ using ShapesRectangle = RemSox.UI.GUI.UIEelements.Shapes.Rectangle; namespace RemSox.Utils; /// +/// /// Registers all YesNt statements that expose the WindowManager / UI element API. -/// +/// +/// /// All ui_* and win_* statements support two argument styles: -/// positional: ui_rect ${id} 20 20 100 60 0 128 255 -/// named: ui_rect ${id} x=20 y=20 w=100 h=60 r=0 g=128 b=255 -/// +///
positional: ui_rect ${id} 20 20 100 60 0 128 255 +///
named: ui_rect ${id} x=20 y=20 w=100 h=60 r=0 g=128 b=255 +///
+/// /// Commas are treated as whitespace in both modes, so you can write: -/// ui_rect ${id} x=20,y=20,w=100,h=60,r=0,g=128,b=255 -/// +///
ui_rect ${id} x=20,y=20,w=100,h=60,r=0,g=128,b=255 +///
+/// /// If any argument contains '=', the statement parses in named mode /// (order-independent). Otherwise, positional mode is used. -/// +/// +/// /// Substitutions: -/// %win_last_id expands to the id of the last created window -/// %ui_last_id expands to the id of the last created UI element +///
%win_last_id expands to the id of the last created window +///
%ui_last_id expands to the id of the last created UI element +///
///
public class YesNtWindowStatements(Process ownerProcess) {