public void onFuseButtonClicked()
 {
     if (!PlayerView.Binder.MenuSystem.InTransition)
     {
         Player            player          = GameLogic.Binder.GameState.Player;
         CharacterInstance activeCharacter = player.ActiveCharacter;
         while (player.canEvolveItem(this.ItemInstance))
         {
             CmdEvolveItem.ExecuteStatic(activeCharacter, this.ItemInstance);
         }
         ItemInfoContent.InputParameters parameters2 = new ItemInfoContent.InputParameters();
         parameters2.ItemInstance = this.ItemInstance;
         ItemInfoContent.InputParameters parameter = parameters2;
         PlayerView.Binder.MenuSystem.transitionToMenu(MenuType.ThinPopupMenu, MenuContentType.ItemInfoContent, parameter, 0f, true, true);
     }
 }
Exemplo n.º 2
0
 public void onEquipButtonClicked()
 {
     if (!PlayerView.Binder.MenuSystem.InTransition)
     {
         Player            player          = GameLogic.Binder.GameState.Player;
         CharacterInstance activeCharacter = player.ActiveCharacter;
         if (player.canEvolveItem(this.ItemInstance))
         {
             while (player.canEvolveItem(this.ItemInstance))
             {
                 CmdEvolveItem.ExecuteStatic(activeCharacter, this.ItemInstance);
             }
         }
         else
         {
             GameLogic.Binder.CommandProcessor.execute(new CmdEquipItem(activeCharacter, this.ItemInstance), 0f);
             PlayerView.Binder.AudioSystem.playItemEquipSfx(this.ItemInstance.Item.Type);
             PlayerView.Binder.MenuSystem.returnToPreviousMenu(false);
         }
     }
 }