Skip to content

Commit c25d0aa

Browse files
authored
Added ControlSheet.CreateRow
1 parent 10c74fa commit c25d0aa

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

game/addons/tools/Code/Editor/ControlSheet/ControlSheet.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ public void AddObject( SerializedObject obj, Func<SerializedProperty, bool> filt
3333
_filter = default;
3434
}
3535

36+
public static Widget CreateRow( SerializedProperty property, bool includeExtraInfo = false )
37+
{
38+
return ControlSheetRow.Create( property, includeExtraInfo );
39+
}
40+
3641
Guid FindGuid( SerializedProperty sp )
3742
{
3843
return FindGuid( sp?.Parent );

game/addons/tools/Code/Editor/ControlSheet/ControlSheetGroup.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
namespace Editor;
44

5-
class ControlSheetGroup : Widget
5+
/// <summary>
6+
/// Represents a group of related controls within a control sheet, optionally with a collapsible header and property
7+
/// name display.
8+
/// </summary>
9+
public class ControlSheetGroup : Widget
610
{
711
internal List<SerializedProperty> properties;
812
List<ControlSheetRow> rows = new();

game/addons/tools/Code/Editor/ControlSheet/ControlSheetRow.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
namespace Editor;
44

5+
/// <summary>
6+
/// Represents a single row in a control sheet UI, providing editing and validation functionality for a serialized
7+
/// property.
8+
/// </summary>
59
class ControlSheetRow : Widget
610
{
711
public ControlWidget ControlWidget { get; private set; }

0 commit comments

Comments
 (0)