Files
tbd-station-14/Content.Client/VendingMachines/UI/VendingMachineItem.xaml.cs
Winkarst 588661465a Make vending machine use EntityPrototypeView (#30064)
* Make vendor machines use EntityPrototypeView

* Update

* 1

* Kill me

* For the love of god!!!
2024-08-22 10:40:39 -04:00

20 lines
486 B
C#

using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.XAML;
using Robust.Shared.Prototypes;
namespace Content.Client.VendingMachines.UI;
[GenerateTypedNameReferences]
public sealed partial class VendingMachineItem : BoxContainer
{
public VendingMachineItem(EntProtoId entProto, string text)
{
RobustXamlLoader.Load(this);
ItemPrototype.SetPrototype(entProto);
NameLabel.Text = text;
}
}