public UplinkListingControl(string itemName, string itemDescription, int itemPrice, bool canBuy) { RobustXamlLoader.Load(this); UplinkItemName.Text = itemName; UplinkItemDescription.SetMessage(itemDescription); UplinkItemBuyButtonProtected.Text = $"{itemPrice} TC"; UplinkItemBuyButtonProtected.Disabled = !canBuy; }
public UplinkListingControl(string itemName, string itemDescription, int itemPrice, bool canBuy, Texture?texture = null) { RobustXamlLoader.Load(this); UplinkItemName.Text = itemName; UplinkItemDescription.SetMessage(itemDescription); UplinkItemBuyButton.Text = $"{itemPrice} TC"; UplinkItemBuyButton.Disabled = !canBuy; UplinkItemTexture.Texture = texture; }