Description for Uplink UI (and preset uplinks) (#4870)
* testing decription textlabel * Move uplink listing to a new menu * Add search bar * Added description * Added radio uplink * Added preset uplinks * Minor fix * Fixed comma
This commit is contained in:
25
Content.Client/Traitor/Uplink/UplinkListingControl.xaml.cs
Normal file
25
Content.Client/Traitor/Uplink/UplinkListingControl.xaml.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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 Button UplinkItemBuyButton => UplinkItemBuyButtonProtected;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user