Blink.GUI.StateCharacterSelect.Draw C# (CSharp) Méthode

Draw() public méthode

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
Résultat void
        public void Draw(SpriteBatch sb)
        {
            //title.Draw(sb);

            sb.Draw(background, new Vector2(0,0), Color.White);
            foreach (ImageButton thumb in charThumbs)
                thumb.Draw(sb);

            if (showLoadScreen)
            {
                Rectangle r = new Rectangle((int)(screenSize.X / 2) - (int)(loadScreen.Width / 4),
                    (int)(screenSize.Y / 2) - (int)(loadScreen.Height / 4),
                    (int)(loadScreen.Width / 2), (int)(loadScreen.Height / 2));
                sb.Draw(loadScreen, r, Color.White);
            }
            //player1.Draw(sb);
            //player2.Draw(sb);
            //player3.Draw(sb);
            //player4.Draw(sb);
            //sb.Draw(selectedOverlay, new Vector2(200 * (selected % THUMBROWSIZE), (float)Math.Floor((selected / 8f)) * 120 + 600), Color.Gold);
        }