Example #1
0
        /// <summary>
        /// Sets the parameter controls.
        /// </summary>
        /// <param name="props">The property collection.</param>
        /// <returns>The control informations.</returns>
        protected override ControlInfo OnCreateConfigUI(PropertyCollection props)
        {
            ControlInfo info = PropertyBasedEffect.CreateDefaultConfigUI(props);

            info.SetPropertyControlValue("BlendFactor", ControlInfoPropertyNames.DisplayName, "Blend factor");

            return(info);
        }
Example #2
0
        /// <summary>
        /// Sets the parameter controls.
        /// </summary>
        /// <param name="props">The property collection.</param>
        /// <returns>The control informations.</returns>
        protected override ControlInfo OnCreateConfigUI(PropertyCollection props)
        {
            ControlInfo info = PropertyBasedEffect.CreateDefaultConfigUI(props);

            info.SetPropertyControlType("Color", PropertyControlType.ColorWheel);

            return(info);
        }
Example #3
0
        /// <summary>
        /// Sets the parameter controls.
        /// </summary>
        /// <param name="props">The property collection.</param>
        /// <returns>The control information.</returns>
        protected override ControlInfo OnCreateConfigUI(PropertyCollection props)
        {
            var info = PropertyBasedEffect.CreateDefaultConfigUI(props);

            info.SetPropertyControlValue("Binary", ControlInfoPropertyNames.DisplayName, "Input");
            info.SetPropertyControlValue("Binary", ControlInfoPropertyNames.Description, "Binary");

            info.SetPropertyControlValue("Wavelength", ControlInfoPropertyNames.DisplayName, "Wavelength");

            info.SetPropertyControlValue("Orientation", ControlInfoPropertyNames.DisplayName, "Angle");
            info.SetPropertyControlType("Orientation", PropertyControlType.AngleChooser);

            info.SetPropertyControlValue("RenderQuality", ControlInfoPropertyNames.DisplayName, "Render quality");

            return(info);
        }