Example #1
0
 public AssetCategoryPath Append(CustomAssetCategoryPath customPath)
 {
     return(this.Append(customPath.CategoryPath, customPath.AlwaysShows));
 }
Example #2
0
 public bool IsSketchShapesCategory(AssetCategoryPath rootPath, CustomAssetCategoryPath customPath)
 {
     return(rootPath == PresetAssetCategoryPath.ShapesRoot && customPath.CategoryPath == PresetAssetCategoryPath.SketchShapes.LastStep);
 }
Example #3
0
 public static IEnumerable <CustomAssetCategoryPath> Convert(IEnumerable <ToolboxCategoryAttribute> attributes)
 {
     return(Enumerable.Select <ToolboxCategoryAttribute, CustomAssetCategoryPath>(attributes, (Func <ToolboxCategoryAttribute, CustomAssetCategoryPath>)(attribute => CustomAssetCategoryPath.Convert(attribute))));
 }
Example #4
0
 public static IEnumerable <CustomAssetCategoryPath> GetCustomAssetCategoryPaths(Type type)
 {
     return(CustomAssetCategoryPath.Convert(Enumerable.OfType <ToolboxCategoryAttribute>((IEnumerable)TypeUtilities.GetAttributes(type))));
 }