예제 #1
0
        public override void LoadContent()
        {
            ContentManager Content = Game.game.Content;

            screen = Content.Load<Texture2D>(@"BlackScreen");
            font = Content.Load<SpriteFont>(@"MenuFontLarge");

            PlayGame = new TextButton(font, "Play Game", Color.White, Color.Green, 245, 230, 326, 67);
            PlayGame.MouseEvent = Play;
            QuitGame = new TextButton(font, "Exit", Color.White, Color.Green, 330, 327, 124, 68);
            QuitGame.MouseEvent = Exit;
        }
예제 #2
0
        public override void LoadContent()
        {
            ContentManager Content = Game.game.Content;

            screen = Content.Load<Texture2D>(@"BlackScreen");
            font = Content.Load<SpriteFont>(@"MenuFontLarge");

            SinglePlayer = new TextButton(font, "Single Player", Color.White, Color.Green, 65, 250, (int)font.MeasureString("Single Player").X + 1, 67);
            SinglePlayer.MouseEvent = Play;
            MultiPlayer = new TextButton(font, "Online Play", Color.White, Color.Green, 65, 330, (int)font.MeasureString("Online Play").X + 1, 68);
            MultiPlayer.MouseEvent = Online;
            QuitGame = new TextButton(font, "Exit", Color.White, Color.Green, 65, 410, (int)font.MeasureString("Exit").X + 1, 68);
            QuitGame.MouseEvent = Exit;
        }