Ejemplo n.º 1
0
 protected override void RowGUI(TreeView.RowGUIArgs args)
 {
     SerializedPropertyTreeView.SerializedPropertyItem item = (SerializedPropertyTreeView.SerializedPropertyItem)args.item;
     for (int i = 0; i < args.GetNumVisibleColumns(); i++)
     {
         this.CellGUI(args.GetCellRect(i), item, args.GetColumn(i), ref args);
     }
 }
            protected override void RowGUI(TreeView.RowGUIArgs args)
            {
                TreeViewItem item = args.item;

                for (int i = 0; i < args.GetNumVisibleColumns(); i++)
                {
                    this.CellGUI(args.GetCellRect(i), item, (ProfilerDetailedCallsView.CallsTreeView.Column)args.GetColumn(i), ref args);
                }
            }
Ejemplo n.º 3
0
 protected override void RowGUI(TreeView.RowGUIArgs args)
 {
     if (Event.current.rawType == EventType.Repaint)
     {
         for (int i = 0; i < args.GetNumVisibleColumns(); i++)
         {
             this.CellGUI(args.GetCellRect(i), args.item, (ProfilerDetailedCallsView.CallsTreeView.Column)args.GetColumn(i), ref args);
         }
     }
 }
 protected override void RowGUI(TreeView.RowGUIArgs args)
 {
     if (Event.current.rawType == EventType.Repaint)
     {
         if (this.m_ObjectsData == null || this.m_ObjectsData.Count == 0)
         {
             base.RowGUI(args);
         }
         else
         {
             TreeViewItem item = args.item;
             for (int i = 0; i < args.GetNumVisibleColumns(); i++)
             {
                 this.CellGUI(args.GetCellRect(i), item, args.GetColumn(i), ref args);
             }
         }
     }
 }
Ejemplo n.º 5
0
 protected override void RowGUI(TreeView.RowGUIArgs args)
 {
     if (Event.current.type == EventType.Repaint)
     {
         int i = 0;
         int numVisibleColumns = args.GetNumVisibleColumns();
         while (i < numVisibleColumns)
         {
             int  column   = args.GetColumn(i);
             Rect cellRect = args.GetCellRect(i);
             if (column == 0)
             {
                 GUIStyle label = TreeView.DefaultStyles.label;
                 cellRect.xMin += (float)label.margin.left + base.GetContentIndent(args.item);
                 int  num      = 16;
                 int  num2     = 2;
                 Rect position = cellRect;
                 position.width = (float)num;
                 Texture icon = args.item.icon;
                 if (icon != null)
                 {
                     GUI.DrawTexture(position, icon, ScaleMode.ScaleToFit);
                 }
                 label.padding.left = ((!(icon == null)) ? (num + num2) : 0);
                 label.Draw(cellRect, args.item.displayName, false, false, args.selected, args.focused);
             }
             else
             {
                 string itemcontent = this.GetItemcontent(args, column);
                 if (itemcontent != null)
                 {
                     TreeView.DefaultGUI.LabelRightAligned(cellRect, itemcontent, args.selected, args.focused);
                 }
                 else
                 {
                     GUI.enabled = false;
                     TreeView.DefaultGUI.LabelRightAligned(cellRect, "-", false, false);
                     GUI.enabled = true;
                 }
             }
             i++;
         }
     }
 }
Ejemplo n.º 6
0
 protected override void RowGUI(TreeView.RowGUIArgs args)
 {
     if (Event.current.rawType == EventType.Repaint)
     {
         ProfilerFrameDataTreeView.FrameDataTreeViewItem frameDataTreeViewItem = (ProfilerFrameDataTreeView.FrameDataTreeViewItem)args.item;
         frameDataTreeViewItem.Init(this.m_MultiColumnHeader.columns);
         for (int i = 0; i < args.GetNumVisibleColumns(); i++)
         {
             Rect cellRect = args.GetCellRect(i);
             this.CellGUI(cellRect, frameDataTreeViewItem, i == 0, args.GetColumn(i), ref args);
         }
         if (args.selected)
         {
             if (args.rowRect.Contains(Event.current.mousePosition))
             {
                 if (base.hasSearch)
                 {
                     GUIStyle.SetMouseTooltip(ProfilerFrameDataTreeView.kFrameTooltip.tooltip, args.rowRect);
                 }
             }
         }
     }
 }