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