Пример #1
0
 /// <summary>
 /// Create a new main menu screen.
 /// </summary>
 /// <param name="theScreenEvent"></param>
 public MenuScreen(EventHandler theScreenEvent)
     : base(theScreenEvent)
 {
     //Load the background texture for the screen
     lbBackground = new LayeredBackground();
     spTitle = new Sprite();
     mMenu = new Menu(new Vector2(300, 250));
 }
Пример #2
0
 /// <summary>
 /// Create a new options menu.
 /// </summary>
 /// <param name="theScreenEvent"></param>
 /// <param name="graphics"></param>
 public OptionsScreen(EventHandler theScreenEvent,GraphicsDeviceManager graphics)
     : base(theScreenEvent)
 {
     //Load the background texture for the screen
     this.graphics = graphics;
     lbBackground = new LayeredBackground();
     mMainMenu = new Menu(new Vector2(50, 100));
     mMusicMenu = new Menu(new Vector2(250, 100), mMainMenu, new EventHandler(BackOutEvent));
     mSFXMenu = new Menu (new Vector2(350, 100), mMainMenu, new EventHandler(BackOutEvent));
     mHeroMenu = new Menu(new Vector2(450, 100), mMainMenu, new EventHandler(BackOutEvent));
     mResolutionMenu = new Menu(new Vector2(250, 100), mMainMenu, new EventHandler(BackOutEvent));
 }
Пример #3
0
 public MenuTransition(TransitionStyle style, Menu targetMenu)
 {
     tStyle = style;
     mMenu = targetMenu;
 }
Пример #4
0
 /// <summary>
 /// Create a new Menu
 /// </summary>
 /// <param name="thePosition">Position of the menu.</param>
 /// <param name="theParent">The menu this menu came from.</param>
 /// <param name="theBackOutEvent">The event fired when backspace is pressed.</param>
 public Menu(Vector2 thePosition, Menu theParent, EventHandler theBackOutEvent)
 {
     vPosition = thePosition;
     Parent = theParent;
     BackOutEvent = theBackOutEvent;
 }