public PauseMenuFrame()
     : base("Paused Game")
 {
     continueButton = new TextButton (Vector2.UnitY * spacingConstant,"Continue");
     helpButton = new TextButton (Vector2.UnitY * spacingConstant * 2, "Help");
     quitButton = new TextButton(Vector2.UnitY * spacingConstant * 3, "Quit");
 }
        public override void Load()
        {
            this.BackgroundImage = (Texture2D)ContentRepository.Content["TitleScreen"];
            exitButton = new TextButton(new Vector2(edgeSpacing, ElementSize.Y - edgeSpacing), "Exit");
            exitButton.Initialize();
            exitButton.Location = new Vector2(exitButton.Location.X, exitButton.Location.Y - exitButton.ElementSize.Y);
            exitButton.MouseClick += new MouseEventHandler(exitButton_MouseClick);
            this.AddControl(exitButton);

            instructionsButton = new TextButton(new Vector2(edgeSpacing, exitButton.Location.Y - buttonSpacing), "Instructions");
            instructionsButton.Initialize();
            instructionsButton.Location = new Vector2(instructionsButton.Location.X, instructionsButton.Location.Y - instructionsButton.ElementSize.Y);
            instructionsButton.MouseClick += new MouseEventHandler(instructionsButton_MouseClick);
            this.AddControl(instructionsButton);

            optionsButton = new TextButton(new Vector2(edgeSpacing, instructionsButton.Location.Y - buttonSpacing), "Options");
            optionsButton.Initialize();
            optionsButton.Location = new Vector2(optionsButton.Location.X, optionsButton.Location.Y - optionsButton.ElementSize.Y);
            optionsButton.MouseClick += new MouseEventHandler(optionsButton_MouseClick);
            this.AddControl(optionsButton);

            highScoreButton = new TextButton(new Vector2(edgeSpacing, optionsButton.Location.Y - buttonSpacing), "High Score");
            highScoreButton.Initialize();
            highScoreButton.Location = new Vector2(highScoreButton.Location.X, highScoreButton.Location.Y - highScoreButton.ElementSize.Y);
            highScoreButton.MouseClick += new MouseEventHandler(highScoreButton_MouseClick);
            this.AddControl(highScoreButton);

            loadGameButton = new TextButton(new Vector2(edgeSpacing, highScoreButton.Location.Y - buttonSpacing), "Load Game");
            loadGameButton.Initialize();
            loadGameButton.Location = new Vector2(loadGameButton.Location.X, loadGameButton.Location.Y - loadGameButton.ElementSize.Y);
            loadGameButton.MouseClick += new MouseEventHandler(loadGameButton_MouseClick);
            this.AddControl(loadGameButton);

            newGameButton = new TextButton(new Vector2(edgeSpacing, loadGameButton.Location.Y - buttonSpacing), "New Game");
            newGameButton.Initialize();
            newGameButton.Location = new Vector2(newGameButton.Location.X, newGameButton.Location.Y - newGameButton.ElementSize.Y);
            newGameButton.MouseClick += new MouseEventHandler(newGameButton_MouseClick);
            this.AddControl(newGameButton);

            this.KeyUp += new KeyEventHandler(MainMenuFrame_KeyUp);
        }