Make the material ejection control completely generic (#23308)
* Finish decoupling material ejection from lathes * commented
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
using Content.Shared.Lathe;
|
||||
using Content.Shared.Materials;
|
||||
using Content.Shared.Research.Components;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Client.GameObjects;
|
||||
|
||||
namespace Content.Client.Lathe.UI
|
||||
{
|
||||
@@ -33,11 +31,6 @@ namespace Content.Client.Lathe.UI
|
||||
SendMessage(new LatheQueueRecipeMessage(recipe, amount));
|
||||
};
|
||||
|
||||
_menu.OnEjectPressed += (material, sheetsToExtract) =>
|
||||
{
|
||||
SendMessage(new EjectMaterialMessage(material, sheetsToExtract));
|
||||
};
|
||||
|
||||
_menu.OpenCentered();
|
||||
}
|
||||
|
||||
@@ -51,7 +44,6 @@ namespace Content.Client.Lathe.UI
|
||||
if (_menu != null)
|
||||
_menu.Recipes = msg.Recipes;
|
||||
_menu?.PopulateRecipes(Owner);
|
||||
_menu?.PopulateMaterials(Owner);
|
||||
_menu?.PopulateQueueList(msg.Queue);
|
||||
_menu?.SetQueueInfo(msg.CurrentlyProducing);
|
||||
break;
|
||||
@@ -64,7 +56,6 @@ namespace Content.Client.Lathe.UI
|
||||
if (!disposing)
|
||||
return;
|
||||
_menu?.Dispose();
|
||||
//thom _materialsEjectionMenu?.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user