Пример #1
0
        public void Draw(SpriteBatch sb)
        {
            sb.Draw(textureCurrent, Bounds, Color.White);

            if (textwindow != null)
            {
                textwindow.Draw(sb);
            }
        }
Пример #2
0
        public override void Draw(SpriteBatch spriteBatch)
        {
            _graphicsDevice.Clear(Color.Black);

            spriteBatch.Begin();
            spriteBatch.Draw(Background, new Rectangle(0, 0, game.graphics.PreferredBackBufferWidth, game.graphics.PreferredBackBufferHeight), Color.White);
            spriteBatch.DrawString(fontJetset, countPerfect.ToString(), posPerfect, Color.DarkBlue, 0.0f, new Vector2(0, 0), 2.0f, new SpriteEffects(), 1);
            spriteBatch.DrawString(fontJetset, countGood.ToString(), posGood, Color.Green, 0.0f, new Vector2(0, 0), 2.0f, new SpriteEffects(), 1);
            spriteBatch.DrawString(fontJetset, countBreak.ToString(), posBreak, Color.Red, 0.0f, new Vector2(0, 0), 2.0f, new SpriteEffects(), 1);
            spriteBatch.DrawString(fontJetset, maxChain.ToString(), posMax, Color.Black, 0.0f, new Vector2(0, 0), 2.0f, new SpriteEffects(), 1);
            spriteBatch.DrawString(fontJetset, accuracyFormatted.ToString(), posAccu, Color.Black, 0.0f, new Vector2(0, 0), 2.0f, new SpriteEffects(), 1);
            character.Draw(spriteBatch);
            albumart.Draw(spriteBatch);
            if (windowText != null)
            {
                windowText.Draw(spriteBatch);
            }
            spriteBatch.End();
        }