An abstract UI element for a node graph value editor, derived from GraphicsItem. It holds an Enabled flag, a HideLabel property defaulting to true, and a constructor that sets Enabled to true and forwards the parent to the base class.
using Editor;
namespace NodeEditorPlus;
public abstract class ValueEditor : GraphicsItem
{
public bool Enabled { get; set; }
public virtual bool HideLabel { get; } = true;
public ValueEditor( GraphicsItem parent ) : base( parent )
{
Enabled = true;
}
}