Vending machine changes (#8060)

Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
Flipp Syder
2022-05-09 19:22:58 -07:00
committed by GitHub
parent 8257635811
commit 8f223586d4
12 changed files with 240 additions and 57 deletions

View File

@@ -32,15 +32,15 @@ namespace Content.Client.VendingMachines
VendingMachine = vendingMachine;
_menu = new VendingMachineMenu(this) {Title = entMan.GetComponent<MetaDataComponent>(Owner.Owner).EntityName};
_menu.Populate(VendingMachine.Inventory);
_menu.Populate(VendingMachine.AllInventory);
_menu.OnClose += Close;
_menu.OpenCentered();
}
public void Eject(string id)
public void Eject(InventoryType type, string id)
{
SendMessage(new VendingMachineEjectMessage(id));
SendMessage(new VendingMachineEjectMessage(type, id));
}
protected override void ReceiveMessage(BoundUserInterfaceMessage message)