Ejemplo n.º 1
0
        public override void Draw(GameTime gameTime)
        {
            GameRef.SpriteBatch.Begin(SpriteSortMode.Immediate, null, null, null, null, null, GameRef.ScaleMatrix);

            GameRef.SpriteBatch.Draw(background, new Vector2(0, 0), Color.White);

            GameRef.SpriteBatch.End();

            base.Draw(gameTime);

            GameRef.SpriteBatch.Begin(SpriteSortMode.Immediate, null, null, null, null, null, GameRef.ScaleMatrix);

            switch (connectionState)
            {
            case ConnectionState.SERVER_SELECT:
                serverSelectionMenuComponent.Draw(gameTime, GameRef.SpriteBatch);
                break;

            case ConnectionState.LOGIN:
                loginComponent.Draw(gameTime, GameRef.SpriteBatch);
                break;
            }

            GameRef.SpriteBatch.End();
        }