Пример #1
0
        public MultiColumnListView(TreeViewState state, MultiColumnHeader multicolumnHeader, ListModel model, SerializedObjectEntry genericSerializedData) : base(state, multicolumnHeader, model)
        {
            this.genericSerializedData = genericSerializedData;

            // Custom setup
            rowHeight = kRowHeights;
            columnIndexForTreeFoldouts    = 0;
            showAlternatingRowBackgrounds = true;
            showBorder                        = true;
            customFoldoutYOffset              = (kRowHeights - EditorGUIUtility.singleLineHeight) * 0.5f; // center foldout in the row since we also center content. See RowGUI
            extraSpaceBeforeIconAndLabel      = kToggleWidth;
            multicolumnHeader.sortingChanged += OnSortingChanged;

            Reload();
        }
Пример #2
0
 public static void AddGenericSerializedEntry(SerializedObjectEntry entry) => genericSerializedEntries.Add(entry);