Example #1
0
		public override void HandleInput( InputState input ) {
			// If the user presses a button, return to the menu
			if( input.MenuCancel || input.MenuSelect ) {
				ExitScreen();
				ScreenManager.AddScreen( new MainMenuScreen() );
			}
		}
Example #2
0
		public override void HandleInput( InputState input ) {
			if( input.MenuSelect ) {
				if( Accepted != null )
					Accepted( this, EventArgs.Empty );
				ExitScreen();
			} else if( input.MenuCancel ) {
				if( Cancelled != null )
					Cancelled( this, EventArgs.Empty );
				ExitScreen();
			}
		}
Example #3
0
		public override void HandleInput( InputState input ) {
			// play a sound effect for menu changes
			if( input.MenuUp || input.MenuDown ) {
				Audio.Play( "Focus Menu Item" );
			}

			base.HandleInput( input );
		}
Example #4
0
		public override void HandleInput( InputState input ) {
			// Allow the player to skip study time
			if( !isShuffling && input.MenuSelect ) {
				if( studyTime < sideStudyDuration )
					studyTime = sideStudyDuration;
				else if( studyTime < sideStudyDuration * 2 )
					studyTime = sideStudyDuration * 2;
			} else if( input.MenuCancel ) {
				ExitToMenu();
			}
		}
Example #5
0
		public virtual void HandleInput( InputState input ) { }