Exemplo n.º 1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public GameoverMenuScreen()
            : base("Gameover")
        {
            // Create a new content manager to load content used just by this level.
            if (content == null)
                content = new ContentManager(Statics.Game.Services, "Content");

            //Load Overlays
            winOverlay = content.Load<Texture2D>("Overlays/you_win");
            loseOverlay = content.Load<Texture2D>("Overlays/you_lose");
           

            // Flag that there is no need for the game to transition
            // off when the Gameover screen is on top of it.
            IsPopup = true;

            // Create our menu entries.
            MenuEntry quitGameMenuEntry = new MenuEntry("Return Main Menu");

            // Hook up menu event handlers.
            quitGameMenuEntry.Selected += QuitGameMenuEntrySelected;

            // Add entries to the menu.
            MenuEntries.Add(quitGameMenuEntry);
        }
Exemplo n.º 2
0
		/// <summary>
        /// Constructor.
        /// </summary>
		public ContinueGameScreen() : base("Continue Game")
        {
			MenuEntry backMenuEntry = new MenuEntry("Back");
            backMenuEntry.Selected += OnCancel;            
            
			slot1 = new MenuEntry("Slot 1");
			slot2 = new MenuEntry("Slot 2");
			slot3 = new MenuEntry("Slot 3");
			slot4 = new MenuEntry("Slot 4");
			slot5 = new MenuEntry("Slot 5");

			SetMenuText();

			slot1.Selected += Slot1Selected;
			slot2.Selected += Slot2Selected;
			slot3.Selected += Slot3Selected;
			slot4.Selected += Slot4Selected;
			slot5.Selected += Slot5Selected;

			MenuEntries.Add(slot1);
			MenuEntries.Add(slot2);
			MenuEntries.Add(slot3);
			MenuEntries.Add(slot4);
			MenuEntries.Add(slot5);
			MenuEntries.Add(backMenuEntry);
        }
Exemplo n.º 3
0
        public InstructionMenuScreen() : base("")
        {       
         MenuEntry backMenuEntry = new MenuEntry("Back");
         backMenuEntry.Selected += OnCancel;
         MenuEntries.Add(backMenuEntry);

         if (content == null) 
             content = new ContentManager(Statics.Game.Services, "Content");
              
            background = content.Load<Texture2D>("Backgrounds\\Background001");
                 
    }
Exemplo n.º 4
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public OptionsMenuScreen() : base("Options")
        {
			// Create our menu entries.
			mainVolume = new MenuEntry(string.Empty);
			sfxVolume = new MenuEntry(string.Empty);
           
            MenuEntry backMenuEntry = new MenuEntry("Back");

            // Hook up menu event handlers.
            backMenuEntry.Selected += OnCancel;
            
            // Add entries to the menu.
			MenuEntries.Add(mainVolume);
			MenuEntries.Add(sfxVolume);
            MenuEntries.Add(backMenuEntry);
        }
Exemplo n.º 5
0
        /// <summary>
        /// Constructor fills in the menu contents.
        /// </summary>
        public MainMenuScreen() : base("")
        {
            // Create our menu entries.
            MenuEntry playGameMenuEntry = new MenuEntry("New Game");
            //MenuEntry continueGameMenuEntry = new MenuEntry("Continue Story");
            MenuEntry HelpMenuEntry = new MenuEntry("Intstructions");
            MenuEntry exitMenuEntry = new MenuEntry("Exit");

            // Hook up menu event handlers.
            playGameMenuEntry.Selected += PlayGameMenuEntrySelected;
            //continueGameMenuEntry.Selected += ContinueGameMenuEntrySelected;
            HelpMenuEntry.Selected += HelpMenuEntrySelected;
            exitMenuEntry.Selected += OnCancel;
            // Add entries to the menu.
            MenuEntries.Add(playGameMenuEntry);
            MenuEntries.Add(HelpMenuEntry);
            MenuEntries.Add(exitMenuEntry);
            MenuPosition = new Vector2(60f, 570f);
        }
Exemplo n.º 6
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public PauseMenuScreen()
            : base("Paused")
        {
            // Flag that there is no need for the game to transition
            // off when the pause menu is on top of it.
            IsPopup = true;

            // Create our menu entries.
            MenuEntry resumeGameMenuEntry = new MenuEntry("Resume Game");
            MenuEntry ControlsMenuEntry = new MenuEntry("Controls");
            MenuEntry quitGameMenuEntry = new MenuEntry("Quit Game");
            

            // Hook up menu event handlers.
            resumeGameMenuEntry.Selected += OnCancel;
            ControlsMenuEntry.Selected += ControlsMenuEntrySelected;
            quitGameMenuEntry.Selected += QuitGameMenuEntrySelected;
            
            // Add entries to the menu.
            MenuEntries.Add(resumeGameMenuEntry);
            MenuEntries.Add(ControlsMenuEntry);
            MenuEntries.Add(quitGameMenuEntry);
           
        }
Exemplo n.º 7
0
 public ControlMenuScreen():base("")
 {
     MenuEntry backMenuEntry = new MenuEntry("");
     backMenuEntry.Selected += OnCancel;
     MenuEntries.Add(backMenuEntry);
 }