salvage points shop (#2510)
* add conscription bag * add gar mesons * remove salvage vendor restock * add code for shop vendors * make salvage vendor a shop vendor * ui fixes * :trollface: * update locker and vendor inventory * add mining hardsuit for 3k --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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<ShopVendorWindow>();
|
||||
_window.SetEntity(Owner);
|
||||
_window.OpenCenteredLeft();
|
||||
_window.Title = EntMan.GetComponent<MetaDataComponent>(Owner).EntityName;
|
||||
_window.OnItemSelected += index => SendMessage(new ShopVendorPurchaseMessage(index));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user