Exemple #1
0
        public void Draw(GraphicsDevice graphicsDevice, SpriteBatch spriteBatch)
        {
            graphicsDevice.Clear(Color.White);

            spriteBatch.Begin();
            screenComponent.Draw(spriteBatch);

            deleteTeamButton.Draw(spriteBatch);
            createTeamButton.Draw(spriteBatch);
            backButton.Draw(spriteBatch);

            spriteBatch.Draw(backgroundLine, new Rectangle((graphicsDevice.Viewport.Width / 2) - 15, (int)(graphicsDevice.Viewport.Height * 0.125), 30, (int)(graphicsDevice.Viewport.Height * 0.75)), Color.White);

            teamPanel.Draw(spriteBatch);

            spriteBatch.End();
        }
Exemple #2
0
        public void Draw(GraphicsDevice graphicsDevice, SpriteBatch spriteBatch)
        {
            graphicsDevice.Clear(Color.White);

            spriteBatch.Begin();
            screenComponent.Draw(spriteBatch);

            startAsTester.Draw(spriteBatch);
            teams.Draw(spriteBatch);
            createMatch.Draw(spriteBatch);
            joinMatch.Draw(spriteBatch);
            myMatches.Draw(spriteBatch);
            help.Draw(spriteBatch);

            spriteBatch.Draw(backgroundLine, new Rectangle((graphicsDevice.Viewport.Width / 2) - 15, (int)(graphicsDevice.Viewport.Height * 0.125), 30, (int)(graphicsDevice.Viewport.Height * 0.75)), Color.White);

            matchesPanel.Draw(spriteBatch);
            helpPanel.Draw(spriteBatch);

            statusPanel.X = graphicsDevice.PresentationParameters.BackBufferWidth - statusPanel.MeasureContent().X - 336;              // draw from right, offset by the background image container
            statusPanel.Draw(spriteBatch);

            spriteBatch.End();
        }