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

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