Пример #1
0
        public DevLogList(DevLogEntries elements, DevLogEntry.Status status)
            : base(elements.GetEntries(status), typeof(DevLogEntry), true, true, true, true)
        {
            allEntries = elements;

            validEntries = elements.GetEntries(status);
            this.list    = elements.GetEntries(status);

            title = status.ToString();

            drawElementCallback   = DrawLogListElement;
            drawHeaderCallback    = DrawHeader;
            elementHeightCallback = ElementHeightCallback;
            onReorderCallback     = SaveReorderedList;
            onSelectCallback      = OnSelect;
            displayAdd            = false;
            onChangedCallback     = SaveReorderedList;

            devLoggerWindow = EditorWindow.GetWindow(typeof(DevLoggerWindow)) as DevLoggerWindow;
        }
Пример #2
0
 public DevLogPanel(DevLogEntries entries)
 {
     this.entries    = entries;
     devLoggerWindow = EditorWindow.GetWindow(typeof(DevLoggerWindow)) as DevLoggerWindow;
 }