예제 #1
0
        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);
        }
예제 #2
0
 public ConsoleText(string text, ConsoleColor textColor, ConsoleColor backgroundColor)
 {
     m_Text          = text;
     m_Size          = new ConsoleSize(text.Length, 1);
     TextColor       = textColor;
     BackgroundColor = backgroundColor;
 }
예제 #3
0
        public ConsoleText(out ConsoleText consoleText, string text)
        {
            m_Text = text;
            m_Size = new ConsoleSize(text.Length, 1);

            consoleText = this;
        }
예제 #4
0
 public ConsoleText(string text)
 {
     m_Text = text;
     m_Size = new ConsoleSize(text.Length, 1);
 }