Пример #1
0
        public GradientEditor AddGradientEditor(Control field)
        {
            GradientEditor editor = gradientScene.Instance() as GradientEditor;

            AddEditor(field, editor);
            return(editor);
        }
        public override void DrawInterface(Control parent)
        {
            Control gradientField = moduleInterface.AddField("Gradient");

            GradientEditor gradientEditor = moduleInterface.AddGradientEditor(gradientField);

            gradientEditor.gradient = gradient;

            gradientEditor.Connect("GradientChanged", this, "OnGradientChanged");
        }