protected void UpdateSize() { var maxHeight = m_UIs.Max(ui => ui.Size.Height); var width = m_UIs.Sum(ui => ui.Size.Width); m_Size = new ConsoleSize(maxHeight, width); }
public ConsoleText(string text, ConsoleColor textColor, ConsoleColor backgroundColor) { m_Text = text; m_Size = new ConsoleSize(text.Length, 1); TextColor = textColor; BackgroundColor = backgroundColor; }
public ConsoleText(out ConsoleText consoleText, string text) { m_Text = text; m_Size = new ConsoleSize(text.Length, 1); consoleText = this; }
public ConsoleText(string text) { m_Text = text; m_Size = new ConsoleSize(text.Length, 1); }