Example #1
0
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            _spriteBatch.Begin();
            _spriteBatch.Draw(SharedArt.Null, new Rectangle(300, 450, 200, 5), new Color(255, 0, 0, 0.5f));
            _spriteBatch.Draw(SharedArt.Null, new Rectangle(0, 0, 200, 450), new Color(0, 0, 0, 0.5f));
            _spriteBatch.Draw(SharedArt.Null, new Rectangle(590, 0, 300, 600), new Color(0, 0, 0, 0.5f));
            _spriteBatch.Draw(SharedArt.Null, new Rectangle(200, 0, 150, 50), new Color(0, 0, 0, 0.5f));
            _spriteBatch.End();

            _guiManager.Draw(_spriteBatch);
            _boardManager.Draw(_spriteBatch);
            _mouseDrawer.Draw(_spriteBatch);

            base.Draw(gameTime);
        }
Example #2
0
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);

            _map.Draw(_spriteBatch, _scroll);

            DrawGrid();

            if (_settings.CurrentDrawingMode == DrawingMode.SegmentSelection)
            {
                DrawMapSegments();
            }

            _editArea.Draw(_spriteBatch);
            DrawLedges();
            _guiManager.Draw(_spriteBatch);

            _mouseDrawer.Draw(_spriteBatch);

            base.Draw(gameTime);
        }