public EarthWizardInfoScreen() : base("AirWizard") { back = new MenuEntry("Backwards"); back.Selected += toMainInstructions; back.Reversed += toMainInstructions; MenuEntries.Add(back); }
/// <summary> /// Constructor fills in the menu contents. /// </summary> public MainMenuScreen() : base("Main Menu") { // Create our menu entries. MenuEntry playGameMenuEntry = new MenuEntry("Play Game"); MenuEntry instructions = new MenuEntry("Instructions"); MenuEntry exitMenuEntry = new MenuEntry("Exit"); //play music //if (AudioManager.GetCue("The Mystery of the Wizards")) //{ AudioManager.PlayMusic("The Mystery of the Wizards"); //} // Hook up menu event handlers. playGameMenuEntry.Selected += PlayGameMenuEntrySelected; instructions.Selected += InstructionSelected; exitMenuEntry.Selected += OnCancel; // Add entries to the menu. MenuEntries.Add(playGameMenuEntry); MenuEntries.Add(instructions); MenuEntries.Add(exitMenuEntry); if (ScreenManager.graphicsManager.PreferredBackBufferHeight < 900) { ScreenManager.graphicsManager.PreferredBackBufferHeight = 900; ScreenManager.graphicsManager.ApplyChanges(); } }
public InstructionsMenuScreen() : base("Instructions") { back = new MenuEntry("Backwards"); air = new MenuEntry("Air Wizard Information"); earth = new MenuEntry("Earth Wizard Information"); fire = new MenuEntry("Fire Wizard Information"); gravity = new MenuEntry("Gravity Wizard Information"); portal = new MenuEntry("Portal Wizard Information"); time = new MenuEntry("Time Wizard Information"); back.Selected += toMainMenu; back.Reversed += toMainMenu; air.Selected += toAir; air.Reversed += toMainMenu; earth.Selected += toEarth; earth.Reversed += toMainMenu; fire.Selected += toFire; fire.Reversed += toMainMenu; gravity.Selected += toGravity; gravity.Reversed += toMainMenu; portal.Selected += toPortal; portal.Reversed += toMainMenu; time.Selected += toTime; time.Reversed += toMainMenu; MenuEntries.Add(air); MenuEntries.Add(earth); MenuEntries.Add(fire); MenuEntries.Add(gravity); MenuEntries.Add(portal); MenuEntries.Add(time); MenuEntries.Add(back); }
/// <summary> /// Constructor. /// </summary> public EndingScreen(int s1,int s2) : base("Ending") { ScreenManager.graphicsManager.IsFullScreen = false; ScreenManager.graphicsManager.ApplyChanges(); MenuEntries.Add(new MenuEntry("Player 1's Score: "+s1)); MenuEntries.Add(new MenuEntry("Player 2's Score: "+s2)); if (s1 == s2) MenuEntries.Add(new MenuEntry("Draw!")); else MenuEntries.Add(new MenuEntry("Player "+(s1>s2?"1":"2")+" wins!")); MenuEntry backMenuEntry = new MenuEntry("To Main Menu"); backMenuEntry.Selected += toMainMenu; backMenuEntry.Reversed += toMainMenu; MenuEntries.Add(backMenuEntry); }
/// <summary> /// Constructor. /// </summary> public OptionsMenuScreen() : base("Options") { wc = WinCondition.Score; // Create our menu entries. p1Class = new MenuEntry(string.Empty); p2Class = new MenuEntry(string.Empty); time = new MenuEntry(string.Empty); maxScore = new MenuEntry(string.Empty); condition = new MenuEntry(string.Empty); p1Power = new MenuEntry(string.Empty); p2Power = new MenuEntry(string.Empty); resolution = new MenuEntry(string.Empty); start = new MenuEntry("Start Game"); back = new MenuEntry("Back"); SetMenuEntryText(); MenuEntry backMenuEntry = new MenuEntry("Back"); // Hook up menu event handlers. start.Selected += startSelected; p1Class.Selected += p1ClassSelected; p1Class.Reversed += p1ClassDown; p2Class.Selected += p2ClassSelected; p2Class.Reversed += p2ClassDown; p1Power.Selected += p1PowerUp; p1Power.Reversed += p1PowerDown; p2Power.Selected += p2PowerUp; p2Power.Reversed += p2PowerDown; maxScore.Selected += maxScoreSelected; maxScore.Reversed += scoreDown; time.Selected += timeUp; time.Reversed += timeDown; condition.Selected += ConditionSelected; condition.Reversed += ConditionSelected; resolution.Selected += ResolutionUp; resolution.Reversed += ResolutionDown; back.Selected += toMainMenu; // Add entries to the menu. MenuEntries.Add(start); MenuEntries.Add(p1Class); MenuEntries.Add(p2Class); MenuEntries.Add(p1Power); MenuEntries.Add(p2Power); #if !XBOX MenuEntries.Add(resolution); #endif MenuEntries.Add(condition); MenuEntries.Add(maxScore); MenuEntries.Add(back); }
/// <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 quitGameMenuEntry = new MenuEntry("Quit Game"); // Hook up menu event handlers. resumeGameMenuEntry.Selected += OnCancel; quitGameMenuEntry.Selected += QuitGameMenuEntrySelected; // Add entries to the menu. MenuEntries.Add(resumeGameMenuEntry); MenuEntries.Add(quitGameMenuEntry); }