Editor/Effects/SFXREffectControlWidget.cs
// using Editor;
// using Sandbox;
// using System.Linq;
// namespace SFXR.Editor;
// [CustomEditor( typeof( SFXREffect ) )]
// public class SFXREffectControlWidget : ControlWidget
// {
// public SFXREffectControlWidget( SerializedProperty property ) : base( property )
// {
// SetSizeMode( SizeMode.Ignore, SizeMode.Ignore );
// if ( !property.TryGetAsObject( out var target ) )
// return;
// // var component = property.Parent.Targets.First() as SFXRComponent;
// // Get the SFXRSound
// //var sound = property.Parent.Targets.First() as SFXRSound;
// Layout = Layout.Column();
// Layout.Spacing = 2;
// Layout.Margin = new Sandbox.UI.Margin( 0, 0 );
// SFXREffect effect = target.Targets.First() as SFXREffect;
// var properties = TypeLibrary.GetPropertyDescriptions( effect.GetType() );
// foreach ( var prop in properties )
// {
// Log.Info( prop );
// }
// }
// public void AddRow( SerializedProperty property, float labelIndent = 0.0f )
// {
// var editor = ControlWidget.Create( property );
// if ( editor is null )
// return;
// Layout.Add( editor );
// }
// }