diff --git a/game/addons/base/code/UI/Controls/BaseControl.cs b/game/addons/base/code/UI/Controls/BaseControl.cs index ff7ee529..a0530819 100644 --- a/game/addons/base/code/UI/Controls/BaseControl.cs +++ b/game/addons/base/code/UI/Controls/BaseControl.cs @@ -1,11 +1,10 @@ -using System; - -namespace Sandbox.UI; +namespace Sandbox.UI; public class BaseControl : Panel { SerializedProperty _property; + [Parameter] public SerializedProperty Property { get => _property; @@ -56,7 +55,7 @@ public class BaseControl : Panel var type = property.PropertyType; var allAttributes = Game.TypeLibrary.GetTypesWithAttribute( false ) - .Where( x => x.Type.TargetType.IsAssignableTo( typeof( BaseControl ) )) + .Where( x => x.Type.TargetType.IsAssignableTo( typeof( BaseControl ) ) ) .ToArray(); var allEditors = allAttributes