25 lines
682 B
C#
25 lines
682 B
C#
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.Graphics;
|
|
using Robust.Client.UserInterface;
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
namespace Content.Client.Store.Ui;
|
|
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class StoreListingControl : Control
|
|
{
|
|
public StoreListingControl(string itemName, string itemDescription,
|
|
string price, bool canBuy, Texture? texture = null)
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
|
|
StoreItemName.Text = itemName;
|
|
StoreItemDescription.SetMessage(itemDescription);
|
|
|
|
StoreItemBuyButton.Text = price;
|
|
StoreItemBuyButton.Disabled = !canBuy;
|
|
|
|
StoreItemTexture.Texture = texture;
|
|
}
|
|
}
|