Пример #1
0
        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;
        }
Пример #2
0
        public GraphPropertyEditor()
        {
            graph          = new HaxGraph();
            graph.Changed += GraphOnChanged;

            KeyPressEvent += OnKeyPressEvent;

            Add(graph);
            ShowAll();

            SizeRequested += OnSizeRequested;
            SizeAllocated += OnSizeAllocated;
        }