示例#1
0
        public void LoadGraphicsContent(SpriteBatch spriteBatch)
        {
            this.spriteBatch = spriteBatch;

            background.LoadGraphicsContent(spriteBatch, content.Load <Texture2D>(@"Content\ChessSetLight"));
            banner.LoadGraphicsContent(spriteBatch, content.Load <Texture2D>(@"Content\Welcome"));

            play.LoadGraphicsContent(spriteBatch, content.Load <Texture2D>(@"Content\PlayGame"));
            options.LoadGraphicsContent(spriteBatch, content.Load <Texture2D>(@"Content\Options"));
            help.LoadGraphicsContent(spriteBatch, content.Load <Texture2D>(@"Content\Help"));
            quit.LoadGraphicsContent(spriteBatch, content.Load <Texture2D>(@"Content\quit"));

            spriteFont = content.Load <SpriteFont>(@"Content\SpriteFont1");
        }