Files
tbd-station-14/Content.Client/VendingMachines/UI/VendingMachineItem.xaml.cs
2025-03-02 13:47:52 +11:00

25 lines
567 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;
}
public void SetText(string text)
{
NameLabel.Text = text;
}
}