diff --git a/game/addons/tools/Code/Editor/ControlSheet/ControlSheet.cs b/game/addons/tools/Code/Editor/ControlSheet/ControlSheet.cs index 02b37217..95d356e9 100644 --- a/game/addons/tools/Code/Editor/ControlSheet/ControlSheet.cs +++ b/game/addons/tools/Code/Editor/ControlSheet/ControlSheet.cs @@ -33,6 +33,11 @@ public class ControlSheet : GridLayout, IControlSheet _filter = default; } + public static Widget CreateRow( SerializedProperty property, bool includeExtraInfo = false ) + { + return ControlSheetRow.Create( property, includeExtraInfo ); + } + Guid FindGuid( SerializedProperty sp ) { return FindGuid( sp?.Parent ); diff --git a/game/addons/tools/Code/Editor/ControlSheet/ControlSheetGroup.cs b/game/addons/tools/Code/Editor/ControlSheet/ControlSheetGroup.cs index a22df05a..81233f5e 100644 --- a/game/addons/tools/Code/Editor/ControlSheet/ControlSheetGroup.cs +++ b/game/addons/tools/Code/Editor/ControlSheet/ControlSheetGroup.cs @@ -2,7 +2,11 @@ namespace Editor; -class ControlSheetGroup : Widget +/// +/// Represents a group of related controls within a control sheet, optionally with a collapsible header and property +/// name display. +/// +public class ControlSheetGroup : Widget { internal List properties; List rows = new(); diff --git a/game/addons/tools/Code/Editor/ControlSheet/ControlSheetRow.cs b/game/addons/tools/Code/Editor/ControlSheet/ControlSheetRow.cs index c3eda634..34b5d7a7 100644 --- a/game/addons/tools/Code/Editor/ControlSheet/ControlSheetRow.cs +++ b/game/addons/tools/Code/Editor/ControlSheet/ControlSheetRow.cs @@ -2,6 +2,10 @@ namespace Editor; +/// +/// Represents a single row in a control sheet UI, providing editing and validation functionality for a serialized +/// property. +/// class ControlSheetRow : Widget { public ControlWidget ControlWidget { get; private set; }