예제 #1
0
 private void RefreshSendButtonInteractable()
 {
     if (this._buttons.IsNullOrEmpty <Button>())
     {
         return;
     }
     if (!this.IsNumberInput)
     {
         this.SetInteractableSendButton(false);
     }
     else
     {
         StuffItem          stuffItem          = !Object.op_Inequality((Object)this.ItemInfo.Item3, (Object)null) ? (StuffItem)null : ((ItemNodeUI)this.ItemInfo.Item3).Item;
         ItemListController itemListController = (ItemListController)this.ItemInfo.Item2;
         if (stuffItem == null || itemListController == null)
         {
             this.SetInteractableSendButton(false);
         }
         else
         {
             this.SetInteractableSendButton(this.InputNumber <= itemListController.PossibleCount(stuffItem));
         }
     }
 }