コード例 #1
0
        public static IColorConfig CreateColorConfig(this IPluginHost host, ConfigAttribute attribute, Type type)
        {
            IColorConfig result = null;

            host.CreateColorConfig(attribute.Name, (TSliceMode)attribute.SliceMode, (TPinVisibility)attribute.Visibility, out result);
            result.SetSubType(new RGBAColor(attribute.DefaultColor), attribute.HasAlpha);
            result.Order = attribute.Order;
            return(result);
        }