Example #1
0
 public virtual void OnB(object nothing, ButtonFireEventArgs e)
 {
     if (!e.previouslyDown && ! isFading)
     {
         FadeOut(e.gameTime);
         if (Shorewood.freeSpellMode.Visible)
         {
             Shorewood.freeSpellMode.Hide();
         }
     }
 }
Example #2
0
 protected virtual void OnRightShoulder(object sender, ButtonFireEventArgs args)
 {
     MoveRight(args.gameTime);
 }
Example #3
0
 private void OnPause(object sender, ButtonFireEventArgs args)
 {
     if ((gameState == GameState.PlayingNormalGameplay)&& !args.previouslyDown)
     {
         gameState = GameState.Paused;
     }
 }
Example #4
0
 public override void OnB(object sender, ButtonFireEventArgs args)
 {
     TransitionTo(parentDialogType,args.gameTime);
 }
Example #5
0
 protected virtual void OnSelect(object sender, ButtonFireEventArgs a)
 {
     if (!Shorewood.popUpManager.IsActive)
     {
         if (!a.previouslyDown)
         {
             DialogResult = DialogResult.A;
         }
     }
 }
Example #6
0
 protected virtual void OnMoveUp(object sender, ButtonFireEventArgs a)
 {
     if (!Shorewood.popUpManager.IsActive)
     {
         if (!a.previouslyDown)
         {
             MoveUp();
         }
     }
 }
Example #7
0
 public virtual void OnY(object sender, ButtonFireEventArgs a)
 {
     if (!Shorewood.popUpManager.IsActive)
     {
         if (Shorewood.IsTrial && AllowPurchase )
         {
             Shorewood.popUpManager.ShowDialog(PopUpType.Purchase, a.gameTime, null);
         }
     }
 }
Example #8
0
        public virtual void OnX(object sender, ButtonFireEventArgs a)
        {
            if (!Shorewood.popUpManager.IsActive)
            {

            }
        }
Example #9
0
 public void OnTrigger(object sender, ButtonFireEventArgs args)
 {
     if (!args.previouslyDown && gameplayState == NormalGameplayState.CurrentLetterActive
         && !Shorewood.dialogManager.IsActive)
     {
         if (gridRenderer.grid.validWords.Count > 0)
         {
             gameplayState = NormalGameplayState.FindingWords;
         }
     }
 }
Example #10
0
 public void OnRight(object sender, ButtonFireEventArgs args)
 {
     if (!args.previouslyDown && gameplayState == NormalGameplayState.CurrentLetterActive
         && !Shorewood.dialogManager.IsActive)
     {
         MoveRight();
     }
 }