Exemple #1
0
        protected BaseConsole(int width, int height, int left, int top, RLColor backColor, BackConsole backConsole)
        {
            _height      = height;
            _width       = width;
            _left        = left;
            _top         = top;
            _backConsole = backConsole;
            _backColor   = backColor;

            _console = new RLConsole(_width, _height);
            _console.SetBackColor(0, 0, _width, _height, backColor);
        }
Exemple #2
0
 public MapConsole(int width, int height, int left, int top, RLColor backColor, BackConsole backConsole)
     : base(width, height, left, top, backColor, backConsole)
 {
 }
Exemple #3
0
        const int _ARRAYLENGTH = 100;         // TODO: Put this into a config file somewhere.

        public TextConsole(int width, int height, int left, int top, RLColor backColor, BackConsole backConsole)
            : base(width, height, left, top, backColor, backConsole)
        {
            _textWidth  = _console.Width - 2;            // 1 on each side
            _textHeight = _console.Height - 4;           // 3 at the top, 1 at the bottom.

            _currentIndex = 0;
            _outputText   = new string[_ARRAYLENGTH];
            for (var i = 0; i < _outputText.Length; i++)
            {
                _outputText[i] = "";
            }
        }