mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 16:47:26 +00:00
* refactor DeltaV/deltav resources to _DV * change DeltaV namespaces to _DV * add space before all DeltaV comments * update xamls * fix and move arena parallax to _DV * more fix * refactor even more stuff * fix the grid fills --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
26 lines
737 B
C#
26 lines
737 B
C#
using Content.Shared._DV.VendingMachines;
|
|
using Robust.Client.UserInterface;
|
|
|
|
namespace Content.Client._DV.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));
|
|
}
|
|
}
|