public void OnConsoleEntryAdded(AbstractConsole console, ref ConsoleViewCellEntry entry) { CycleArray <ConsoleViewCellEntry> Entries = this.Entries; // if unfiltered console entries overflow - we need to adjust indices and visible lines if (m_oldConsoleEntriesHeadIndex < Entries.HeadIndex) { m_oldConsoleEntriesHeadIndex = Entries.HeadIndex; int indicesHeadIndex = m_filteredIndices.HeadIndex; while (indicesHeadIndex < m_filteredIndices.Length && m_filteredIndices[indicesHeadIndex] < Entries.HeadIndex) { ++indicesHeadIndex; } m_filteredIndices.TrimToHeadIndex(indicesHeadIndex); m_consoleView.TrimCellsToHead(indicesHeadIndex); } int entryIndex = Entries.Length - 1; int entryArrayIndex = Entries.ToArrayIndex(entryIndex); if (Apply(ref Entries.InternalArray[entryArrayIndex])) { m_filteredIndices.Add(entryIndex); m_consoleView.OnConsoleEntryAdded(console, ref entry); } }
public void OnConsoleEntryAdded(AbstractConsole console, ref ConsoleViewCellEntry entry) { if (entry.IsTable) { string[] table = entry.Table; foreach (string item in table) { terminalTableOutput.Add(StringUtils.RemoveRichTextTags(item)); } } }
public ConsoleView(AbstractConsole console, float width, float height) : base(console.Capacity, width, height) { m_console = console; this.ConsoleDelegate = this; this.DataSource = this; this.Delegate = this; m_textMeasure = CreateTextMeasure(); m_filteredDelegate = new ConsoleFilteredDelegate(this); ReloadData(); }
public ConsoleView(AbstractConsole console, float width, float height) : base(console.Capacity, width, height) { m_console = console; this.ConsoleDelegate = this; this.DataSource = this; this.Delegate = this; m_textMeasure = CreateTextMeasure(); m_filteredDelegate = new ConsoleFilteredDelegate(this); ReloadData(); }
public MockConsoleView(AbstractConsole console, float width, float height) : base(console, width, height) { }
public void OnConsoleCleared(AbstractConsole console) { ClearIndices(); m_consoleView.OnConsoleCleared(console); }
public void OnConsoleEntryAdded(AbstractConsole console, ref ConsoleViewCellEntry entry) { CycleArray<ConsoleViewCellEntry> Entries = this.Entries; // if unfiltered console entries overflow - we need to adjust indices and visible lines if (m_oldConsoleEntriesHeadIndex < Entries.HeadIndex) { m_oldConsoleEntriesHeadIndex = Entries.HeadIndex; int indicesHeadIndex = m_filteredIndices.HeadIndex; while(indicesHeadIndex < m_filteredIndices.Length && m_filteredIndices[indicesHeadIndex] < Entries.HeadIndex) { ++indicesHeadIndex; } m_filteredIndices.TrimToHeadIndex(indicesHeadIndex); m_consoleView.TrimCellsToHead(indicesHeadIndex); } int entryIndex = Entries.Length - 1; int entryArrayIndex = Entries.ToArrayIndex(entryIndex); if (Apply(ref Entries.InternalArray[entryArrayIndex])) { m_filteredIndices.Add(entryIndex); m_consoleView.OnConsoleEntryAdded(console, ref entry); } }
public void OnConsoleCleared(AbstractConsole console) { ClearIndices(); m_consoleView.OnConsoleCleared(console); }
public void OnConsoleEntryAdded(AbstractConsole console, ref ConsoleViewCellEntry entry) { }
public void OnConsoleCleared(AbstractConsole console) { }
public void OnConsoleCleared(AbstractConsole console) { ReloadData(); Repaint(); }
////////////////////////////////////////////////////////////////////////////// #region IConsoleDelegate implementation public void OnConsoleEntryAdded(AbstractConsole console, ref ConsoleViewCellEntry entry) { ReloadNewData(); Repaint(); }
public void OnConsoleEntryAdded(AbstractConsole console, ref ConsoleViewCellEntry entry) { ReloadNewData(); Repaint(); }
public void OnConsoleCleared(AbstractConsole console) { ReloadData(); Repaint(); }
public void OnConsoleCleared(AbstractConsole console) { }
////////////////////////////////////////////////////////////////////////////// #region IConsoleDelegate null implementation public void OnConsoleEntryAdded(AbstractConsole console, ref ConsoleViewCellEntry entry) { }