using Content.Shared.DeltaV.VendingMachines; using Robust.Client.UserInterface; namespace Content.Client.DeltaV.VendingMachines.UI; public sealed class ShopVendorBoundUserInterface : BoundUserInterface { [ViewVariables] private ShopVendorWindow? _window; public ShopVendorBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey) { } protected override void Open() { base.Open(); _window = this.CreateWindow(); _window.SetEntity(Owner); _window.OpenCenteredLeft(); _window.Title = EntMan.GetComponent(Owner).EntityName; _window.OnItemSelected += index => SendMessage(new ShopVendorPurchaseMessage(index)); } }