mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-23 00:27:50 +03:00
* Make vendor machines use EntityPrototypeView * Update * 1 * Kill me * For the love of god!!! (cherry picked from commit 588661465a2ede2610bed4dbb440131122e74a6f)
20 lines
486 B
C#
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;
|
|
}
|
|
}
|