Exemplo n.º 1
0
		/// <summary>
		/// Constructor fills in the menu contents.
		/// </summary>
		public MainMenuScreen()
			: base( "Main Menu" ) {
			TransitionOnTime = Puzzle3D.TransitionTime;
			TransitionOffTime = TimeSpan.FromSeconds( 1f );

			// Create our menu entries.
			simpletonMenuEntry = new ImageMenuEntry( null );
			routineMenuEntry = new ImageMenuEntry( null );
			trickyMenuEntry = new ImageMenuEntry( null );
			backbreakingMenuEntry = new ImageMenuEntry( null );
			bedlamMenuEntry = new ImageMenuEntry( null );

			// Hook up menu event handlers.
			simpletonMenuEntry.Selected += SimpletonMenuEntrySelected;
			routineMenuEntry.Selected += RoutineMenuEntrySelected;
			trickyMenuEntry.Selected += TrickyMenuEntrySelected;
			backbreakingMenuEntry.Selected += BackbreakingMenuEntrySelected;
			bedlamMenuEntry.Selected += BedlamMenuEntrySelected;

			// Add entries to the menu.
			MenuEntries.Add( simpletonMenuEntry );
			MenuEntries.Add( routineMenuEntry );
			MenuEntries.Add( trickyMenuEntry );
			MenuEntries.Add( backbreakingMenuEntry );
			MenuEntries.Add( bedlamMenuEntry );
		}
Exemplo n.º 2
0
        /// <summary>
        /// Constructor fills in the menu contents.
        /// </summary>
        public MainMenuScreen()
            : base("Main Menu")
        {
            TransitionOnTime  = Puzzle3D.TransitionTime;
            TransitionOffTime = TimeSpan.FromSeconds(1f);

            // Create our menu entries.
            simpletonMenuEntry    = new ImageMenuEntry(null);
            routineMenuEntry      = new ImageMenuEntry(null);
            trickyMenuEntry       = new ImageMenuEntry(null);
            backbreakingMenuEntry = new ImageMenuEntry(null);
            bedlamMenuEntry       = new ImageMenuEntry(null);

            // Hook up menu event handlers.
            simpletonMenuEntry.Selected    += SimpletonMenuEntrySelected;
            routineMenuEntry.Selected      += RoutineMenuEntrySelected;
            trickyMenuEntry.Selected       += TrickyMenuEntrySelected;
            backbreakingMenuEntry.Selected += BackbreakingMenuEntrySelected;
            bedlamMenuEntry.Selected       += BedlamMenuEntrySelected;

            // Add entries to the menu.
            MenuEntries.Add(simpletonMenuEntry);
            MenuEntries.Add(routineMenuEntry);
            MenuEntries.Add(trickyMenuEntry);
            MenuEntries.Add(backbreakingMenuEntry);
            MenuEntries.Add(bedlamMenuEntry);
        }