2021-10-15 13:49:59 +03:00
|
|
|
using Robust.Client.AutoGenerated;
|
|
|
|
|
using Robust.Client.UserInterface;
|
|
|
|
|
using Robust.Client.UserInterface.Controls;
|
|
|
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
|
using Robust.Shared.Maths;
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.Traitor.Uplink
|
|
|
|
|
{
|
|
|
|
|
[GenerateTypedNameReferences]
|
|
|
|
|
public partial class UplinkListingControl : Control
|
|
|
|
|
{
|
|
|
|
|
public UplinkListingControl(string itemName, string itemDescription, int itemPrice, bool canBuy)
|
|
|
|
|
{
|
|
|
|
|
RobustXamlLoader.Load(this);
|
|
|
|
|
|
|
|
|
|
UplinkItemName.Text = itemName;
|
|
|
|
|
UplinkItemDescription.SetMessage(itemDescription);
|
|
|
|
|
|
2021-10-28 14:23:17 +02:00
|
|
|
UplinkItemBuyButton.Text = $"{itemPrice} TC";
|
|
|
|
|
UplinkItemBuyButton.Disabled = !canBuy;
|
2021-10-15 13:49:59 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|