public override void Draw(GameTime gameTime)
        {
            spriteBatch.Begin();

            if (!isLoaded)
            {
                Game.GraphicsDevice.Clear(Color.Black);

                loadingScreen.draw(spriteBatch);
            }
            else
            {
                spriteBatch.Draw(background, new Vector2(), Color.White);

                mainGrid.draw(spriteBatch);
                previewGrid.draw(spriteBatch);

                controls.draw(spriteBatch);

                spriteBatch.Draw(pauseButton, new Vector2(56, 0), Color.White);
            }

            spriteBatch.End();

            base.Draw(gameTime);
        }
Exemple #2
0
        public virtual void draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(background, new Vector2(), Color.White);

            mainGrid.draw(spriteBatch);
            previewGrid.draw(spriteBatch);
        }
        public void draw(SpriteBatch spriteBatch)
        {
            loadingGrid.draw(spriteBatch);

            spriteBatch.DrawString(font, "Loading...", new Vector2(80, 160), Color.Red);
        }