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,6 +1,7 @@
|
||||
using Content.Shared.PDA;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization;
|
||||
using Robust.Shared.Utility;
|
||||
using System;
|
||||
|
||||
namespace Content.Shared.Traitor.Uplink
|
||||
@@ -13,16 +14,18 @@ namespace Content.Shared.Traitor.Uplink
|
||||
public readonly UplinkCategory Category;
|
||||
public readonly string Description;
|
||||
public readonly string ListingName;
|
||||
public readonly SpriteSpecifier? Icon;
|
||||
|
||||
public UplinkListingData(string listingName, string itemId,
|
||||
int price, UplinkCategory category,
|
||||
string description)
|
||||
string description, SpriteSpecifier? icon)
|
||||
{
|
||||
ListingName = listingName;
|
||||
Price = price;
|
||||
Category = category;
|
||||
Description = description;
|
||||
ItemId = itemId;
|
||||
Icon = icon;
|
||||
}
|
||||
|
||||
public bool Equals(UplinkListingData? other)
|
||||
|
||||
@@ -23,4 +23,15 @@ namespace Content.Shared.Traitor.Uplink
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public sealed class UplinkTryWithdrawTC : BoundUserInterfaceMessage
|
||||
{
|
||||
public int TC;
|
||||
|
||||
public UplinkTryWithdrawTC(int tc)
|
||||
{
|
||||
TC = tc;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user