public void ContextMenuOpenWorkbench()
 {
     if (_showGui)
     {
         foreach (var item in _filteredItems.Items)
         {
             item.DisableIcon();
         }
         foreach (var item in _queue)
         {
             item.DisableIcon();
         }
         if (_processedItem != null)
         {
             _processedItem.DisableIcon();
         }
         _showGui = false;
     }
     else
     {
         if (!WorkshopUtils.PreLaunch())
         {
             LoadAvailableParts();
             _showGui = true;
         }
         else
         {
             ScreenMessages.PostScreenMessage("3D Printer is in travel mode, unable to print at this time", 5, ScreenMessageStyle.UPPER_CENTER);
         }
     }
 }
 public void ContextMenuOnOpenRecycler()
 {
     if (_showGui)
     {
         foreach (var inventory in KISWrapper.GetInventories(vessel).Where(i => i.showGui == false).ToList())
         {
             foreach (var item in inventory.items)
             {
                 item.Value.DisableIcon();
             }
             foreach (var item in _queue)
             {
                 item.DisableIcon();
             }
             if (_processedItem != null)
             {
                 _processedItem.DisableIcon();
             }
         }
         _showGui = false;
     }
     else
     {
         _showGui = true;
     }
 }
Beispiel #3
0
 public void ContextMenuOpenRecycler()
 {
     if (_showGui)
     {
         foreach (var inventory in KISWrapper.GetInventories(vessel).Where(i => i.showGui == false).ToList())
         {
             foreach (var item in inventory.items)
             {
                 item.Value.DisableIcon();
             }
             foreach (var item in _queue)
             {
                 item.DisableIcon();
             }
             if (_processedItem != null)
             {
                 _processedItem.DisableIcon();
             }
         }
         _showGui = false;
     }
     else
     {
         if (!WorkshopUtils.PreLaunch())
         {
             _showGui = true;
         }
         else
         {
             ScreenMessages.PostScreenMessage("Recycler is in travel mode, unable to print at this time", 5, ScreenMessageStyle.UPPER_CENTER);
         }
     }
 }
Beispiel #4
0
 public void ContextMenuOpenWorkbench()
 {
     if (_showGui)
     {
         foreach (var item in _filteredItems.Items)
         {
             item.DisableIcon();
         }
         foreach (var item in _queue)
         {
             item.DisableIcon();
         }
         if (_processedItem != null)
         {
             _processedItem.DisableIcon();
         }
         _showGui = false;
     }
     else
     {
         LoadAvailableParts();
         _showGui = true;
     }
 }