static void CategoryTreeViewItemGUI( Rect rowRect, float rowHeight, ChangeCategoryTreeViewItem item, int solvedChildrenCount, bool isSelected, bool isFocused) { Texture icon = GetCategoryIcon(item.Category.CategoryType); string label = item.Category.GetHeaderText(); DefaultStyles.label = GetCategoryStyle( item.Category, solvedChildrenCount, isSelected); DrawTreeViewItem.ForCategoryItem( rowRect, rowHeight, item.depth, icon, label, isSelected, isFocused); DefaultStyles.label = UnityStyles.Tree.Label; }
static void ChangeCategoryTreeViewItemGUI( Rect rowRect, float rowHeight, ChangeCategoryTreeViewItem item, bool isSelected, bool isFocused) { Texture icon = GetChangeCategoryIcon(item.Category); string label = item.Category.GetHeaderText(); DrawTreeViewItem.ForCategoryItem( rowRect, rowHeight, item.depth, icon, label, isSelected, isFocused); }
static void MergeCategoryTreeViewItemGUI( Rect rowRect, float rowHeight, MergeCategoryTreeViewItem item, bool isSelected, bool isFocused) { Texture icon = Images.GetImage(Images.Name.IconMergeCategory); string label = item.Category.GetHeaderText(); DrawTreeViewItem.ForCategoryItem( rowRect, rowHeight, item.depth, icon, label, isSelected, isFocused); }