Exemple #1
0
 public virtual float GetContentIndent(TreeViewItem item)
 {
     return(GetFoldoutIndent(item) + k_FoldoutWidth);
 }
Exemple #2
0
 public GMCategoryItem(int id, int depth, TreeViewItem parent, string displayName) : base(id, depth, parent, displayName)
 {
     graph = ScriptableObject.CreateInstance <Graph1>();
 }
Exemple #3
0
 public virtual void OnRowGUI(Rect rowRect, TreeViewItem item, int row, bool selected, bool focused)
 {
     DoItemGUI(rowRect, row, item, selected, focused, false);
 }
Exemple #4
0
 public virtual int GetNumRowsOnPageUpDown(TreeViewItem fromItem, bool pageUp, float heightOfTreeView)
 {
     return((int)Mathf.Floor(heightOfTreeView / k_LineHeight));
 }
Exemple #5
0
 protected virtual Texture GetIconForItem(TreeViewItem item)
 {
     return(item.icon);
 }
Exemple #6
0
 protected override Texture GetIconForItem(TreeViewItem item)
 {
     return(null);
 }
Exemple #7
0
 public override float GetContentIndent(TreeViewItem item)
 {
     return(GetFoldoutIndent(item));
 }