Esempio n. 1
0
        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;
        }
Esempio n. 2
0
        public NoisePropertyEditor()
        {
            noiseGraph          = new HaxNoise();
            noiseGraph.Changed += GraphOnChanged;

            //KeyPressEvent += OnKeyPressEvent;

            Add(noiseGraph);
            ShowAll();

            SizeRequested += OnSizeRequested;
            SizeAllocated += OnSizeAllocated;
        }