Renders a popup window taking into account the modal setting.
Inheritance: ControlsConsoleRenderer
Esempio n. 1
0
        public Window(int width, int height)
            : base(width, height)
        {
            updateKeyboardState = false;
            _border             = Shapes.Box.GetDefaultBox();
            _border.Width       = width;
            _border.Height      = height;
            _isVisible          = false;

            ProcessMouseWithoutFocus = true;
            CanFocus      = true;
            MouseCanFocus = true;

            Renderer = new WindowRenderer();

            IsDirty = true;
            Redraw();
        }
Esempio n. 2
0
        public Window(int width, int height)
            : base(width, height)
        {
            updateKeyboardState = false;
            _border = Shapes.Box.GetDefaultBox();
            _border.Width = width;
            _border.Height = height;
            _isVisible = false;

            ProcessMouseWithoutFocus = true;
            CanFocus = true;
            MouseCanFocus = true;

            Renderer = new WindowRenderer();

            IsDirty = true;
            Redraw();
        }