/// <summary> /// Constructor. /// </summary> public GameplayScreen() { TransitionOnTime = TimeSpan.FromSeconds(1.5); TransitionOffTime = TimeSpan.FromSeconds(0.5); pauseAction = new InputAction( new Buttons[] { Buttons.Start, Buttons.Back }, new Keys[] { Keys.Escape }, true); }
/// <summary> /// Creates the PhoneMenuScreen with a particular title. /// </summary> /// <param name="title">The title of the screen</param> public PhoneMenuScreen(string title) { menuTitle = title; TransitionOnTime = TimeSpan.FromSeconds(0.5); TransitionOffTime = TimeSpan.FromSeconds(0.5); // Create the menuCancel action menuCancel = new InputAction(new Buttons[] { Buttons.Back }, null, true); // We need tap gestures to hit the buttons EnabledGestures = GestureType.Tap; }