Exemplo n.º 1
0
        public ShaderLabColorReference(IColorElement colorElement, IColorPropertyValue colorPropertyValue, IColorValue colorValue, DocumentRange colorConstantRange)
        {
            myColorPropertyValue = colorPropertyValue;
            myColorValue         = colorValue;
            ColorElement         = colorElement;
            Owner = (ITreeNode)colorValue ?? colorPropertyValue;
            ColorConstantRange = colorConstantRange;

            BindOptions = new ColorBindOptions
            {
                BindsToName  = false,
                BindsToValue = true
            };
        }