Exemple #1
0
 public virtual void OnB(object nothing, ButtonFireEventArgs e)
 {
     if (!e.previouslyDown && ! isFading)
     {
         FadeOut(e.gameTime);
         if (Shorewood.freeSpellMode.Visible)
         {
             Shorewood.freeSpellMode.Hide();
         }
     }
 }
Exemple #2
0
 protected virtual void OnRightShoulder(object sender, ButtonFireEventArgs args)
 {
     MoveRight(args.gameTime);
 }
Exemple #3
0
 private void OnPause(object sender, ButtonFireEventArgs args)
 {
     if ((gameState == GameState.PlayingNormalGameplay)&& !args.previouslyDown)
     {
         gameState = GameState.Paused;
     }
 }
Exemple #4
0
 public override void OnB(object sender, ButtonFireEventArgs args)
 {
     TransitionTo(parentDialogType,args.gameTime);
 }
Exemple #5
0
 protected virtual void OnSelect(object sender, ButtonFireEventArgs a)
 {
     if (!Shorewood.popUpManager.IsActive)
     {
         if (!a.previouslyDown)
         {
             DialogResult = DialogResult.A;
         }
     }
 }
Exemple #6
0
 protected virtual void OnMoveUp(object sender, ButtonFireEventArgs a)
 {
     if (!Shorewood.popUpManager.IsActive)
     {
         if (!a.previouslyDown)
         {
             MoveUp();
         }
     }
 }
Exemple #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);
         }
     }
 }
Exemple #8
0
        public virtual void OnX(object sender, ButtonFireEventArgs a)
        {
            if (!Shorewood.popUpManager.IsActive)
            {

            }
        }
Exemple #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;
         }
     }
 }
Exemple #10
0
 public void OnRight(object sender, ButtonFireEventArgs args)
 {
     if (!args.previouslyDown && gameplayState == NormalGameplayState.CurrentLetterActive
         && !Shorewood.dialogManager.IsActive)
     {
         MoveRight();
     }
 }