private void onViewSortingChanged(MultiColumnView.Column _cFrom, MultiColumnView.Column _cTo) { if ((_cFrom == MultiColumnView.Column.AssetPath || _cTo == MultiColumnView.Column.AssetPath) && _cFrom != _cTo) { RefreshGUIFilter(); } }
void CellGUI(Rect _rectCell, VCTreeViewItem _item, MultiColumnView.Column _column, ref RowGUIArgs _args) { // Center the cell rect vertically using EditorGUIUtility.singleLineHeight. // This makes it easier to place controls and icons in the cells. CenterRectUsingSingleLineHeight(ref _rectCell); switch (_column) { case MultiColumnView.Column.Selection: drawSelectionEntry(_rectCell, _item); break; case MultiColumnView.Column.Name: drawNameEntry(_rectCell, _item); break; case MultiColumnView.Column.Status: drawStatusEntry(_rectCell, _item); break; case MultiColumnView.Column.AssetPath: drawAssetPathEntry(_rectCell, _item); break; case MultiColumnView.Column.Meta: drawMetaEntry(_rectCell, _item); break; case MultiColumnView.Column.Type: drawTypeEntry(_rectCell, _item); break; case MultiColumnView.Column.Owner: drawOwnerEntry(_rectCell, _item); break; case MultiColumnView.Column.Conflict: drawConflictEntry(_rectCell, _item); break; case MultiColumnView.Column.ChangeList: drawChangeListEntry(_rectCell, _item); break; default: break; } }