protected override void Initialize() { base.Initialize(); var declarationParameter = ((ParticleParameterDescriptor)Property).DeclarationParameter; graph = new HaxGraph(); graph.Curve = (Curve)Property.GetValue(Instance); graph.MinValueY = declarationParameter.CurveMin; graph.MaxValueY = declarationParameter.CurveMax; }
public GraphPropertyEditor() { graph = new HaxGraph(); graph.Changed += GraphOnChanged; KeyPressEvent += OnKeyPressEvent; Add(graph); ShowAll(); SizeRequested += OnSizeRequested; SizeAllocated += OnSizeAllocated; }