Allow drag-and-drop insertion of reagents into the ChemMaster (#19796)
* Add DumpableSolutionComponent Separates out the component from "DrainComponent" that allows one to drag a bucket/any reagent container onto a drain/sink/toilet to empty it and allows other reagent containers to reuse the code effortlessly. * Give the ChemMaster 4000 the DumpableSolution Component Allows drag and dropping solutions into the ChemMaster much like you used to be able to do exclusively with drains. This also allows dumping jugs into them.
This commit is contained in:
@@ -89,6 +89,7 @@ namespace Content.Server.Interaction
|
||||
|
||||
var dropArgs = new DragDropTargetEvent(user.Value, msg.Dragged);
|
||||
|
||||
// trigger dragdrops on the target entity (what you are dropping onto)
|
||||
RaiseLocalEvent(msg.Target, ref dropArgs);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user