Beispiel #1
0
 // Token: 0x060037CE RID: 14286 RVA: 0x0018B424 File Offset: 0x00189824
 private static void onClickedYesButton(SleekButton button)
 {
     if (PlayerBarricadeLibraryUI.library != null)
     {
         if (PlayerBarricadeLibraryUI.transactionButton.state == 0)
         {
             if (PlayerBarricadeLibraryUI.amountField.state > Player.player.skills.experience || PlayerBarricadeLibraryUI.net + PlayerBarricadeLibraryUI.library.amount > PlayerBarricadeLibraryUI.library.capacity)
             {
                 return;
             }
         }
         else if (PlayerBarricadeLibraryUI.net > PlayerBarricadeLibraryUI.library.amount)
         {
             return;
         }
         if (PlayerBarricadeLibraryUI.net > 0u)
         {
             BarricadeManager.transferLibrary(PlayerBarricadeLibraryUI.library.transform, (byte)PlayerBarricadeLibraryUI.transactionButton.state, PlayerBarricadeLibraryUI.amountField.state);
         }
     }
     PlayerLifeUI.open();
     PlayerBarricadeLibraryUI.close();
 }