Пример #1
0
        public void Draw(SpriteBatch spriteBatch)
        {
            background.Draw(spriteBatch);

            // Draw buttons
            foreach (Button button in menuButtons)
            {
                button.Draw(spriteBatch);
            }

            spriteBatch.Draw(ContentStore.help, MoboUtils.textureOrigin(ContentStore.help), Color.White);
        }
Пример #2
0
        public void Draw(SpriteBatch spriteBatch)
        {
            // Draw background
            background.Draw(spriteBatch);

            // Draw logo in middle of screen
            spriteBatch.Draw(ContentStore.logo, MoboUtils.textureOrigin(ContentStore.logo) - new Vector2(0, 64), Color.White);

            // Draw buttons
            foreach (Button button in menuButtons)
            {
                button.Draw(spriteBatch);
            }
        }