Uplink UI icons and withdraw button (#4929)
* Uplink menu has icons now * Add item icons * Add few descriptions * Better withdraw window * Finished with withdraw window * Refactored withdraw ui and fix some bugs * Basic withdraw * Quick fixes * Removed uplink listing for TCs * Move slider to separate control * Final touches * A bit more * Not again... * Fixed names * Address review * Fixed robust * Non necessary check
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
@@ -9,7 +10,9 @@ namespace Content.Client.Traitor.Uplink
|
||||
[GenerateTypedNameReferences]
|
||||
public partial class UplinkListingControl : Control
|
||||
{
|
||||
public UplinkListingControl(string itemName, string itemDescription, int itemPrice, bool canBuy)
|
||||
|
||||
public UplinkListingControl(string itemName, string itemDescription,
|
||||
int itemPrice, bool canBuy, Texture? texture = null)
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
|
||||
@@ -18,6 +21,8 @@ namespace Content.Client.Traitor.Uplink
|
||||
|
||||
UplinkItemBuyButton.Text = $"{itemPrice} TC";
|
||||
UplinkItemBuyButton.Disabled = !canBuy;
|
||||
|
||||
UplinkItemTexture.Texture = texture;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user