Ejemplo n.º 1
0
 private void onDiscardConfirmHidden(Int32 choice)
 {
     ButtonGroupState.SetPointerOffsetToGroup(Dialog.DefaultOffset, Dialog.DialogGroupButton);
     if (choice == 0)
     {
         QuadMistDatabase.MiniGame_AwayCard(this.deleteCardId, this.currentCardOffset);
         if (QuadMistDatabase.MiniGame_GetAllCardCount() > 100)
         {
             QuadMistUI.allCardList.Remove(this.GetCardInfo(this.currentCardId, this.currentCardOffset));
             Byte[] array = this.count;
             Int32  num   = this.deleteCardId;
             array[num]             = (Byte)(array[num] - 1);
             this.currentCardOffset = 0;
             this.DisplayCardList();
             this.DisplayCardDetail();
             ButtonGroupState.ActiveGroup = QuadMistUI.CardGroupButton;
             this.UpdateAmountLabel();
         }
         else
         {
             this.Hide(delegate
             {
                 QuadMistGame.OnDiscardFinish();
                 this.isNeedToBuildCard = true;
             });
         }
     }
     else
     {
         ButtonGroupState.ActiveGroup = QuadMistUI.CardGroupButton;
     }
 }
Ejemplo n.º 2
0
 private void DiscardSeletctedCard()
 {
     FF9Sfx.FF9SFX_Play(103);
     QuadMistDatabase.MiniGame_AwayCard(this.deleteCardId, this.offset[this.deleteCardId]);
     count[deleteCardId]            = (Byte)(count[deleteCardId] - 1);
     this.offset[this.deleteCardId] = Math.Min(this.offset[this.deleteCardId], (Int32)(this.count[this.deleteCardId] - 1));
     this.DisplayHelp();
     this.DisplayCardList();
     this.DisplayCardDetail();
 }