2021-06-18 01:49:18 -07:00
|
|
|
using System.Collections.Generic;
|
2021-12-30 22:56:10 +01:00
|
|
|
using Content.Client.Items.UI;
|
2021-06-09 22:19:39 +02:00
|
|
|
using Content.Shared.Inventory;
|
2021-12-30 22:56:10 +01:00
|
|
|
using Robust.Client.UserInterface;
|
|
|
|
|
using Robust.Client.UserInterface.CustomControls;
|
|
|
|
|
using Robust.Shared.Analyzers;
|
2019-04-15 21:11:38 -06:00
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
using Robust.Shared.IoC;
|
2021-03-28 08:26:32 +02:00
|
|
|
using Robust.Shared.Serialization.Manager.Attributes;
|
2019-07-23 23:24:47 +02:00
|
|
|
using Robust.Shared.ViewVariables;
|
2018-04-25 06:42:35 -05:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Client.Inventory
|
2018-04-25 06:42:35 -05:00
|
|
|
{
|
2018-12-13 07:47:19 -06:00
|
|
|
/// <summary>
|
|
|
|
|
/// A character UI which shows items the user has equipped within his inventory
|
|
|
|
|
/// </summary>
|
2019-07-31 15:02:36 +02:00
|
|
|
[RegisterComponent]
|
2021-12-30 22:56:10 +01:00
|
|
|
[ComponentReference(typeof(InventoryComponent))]
|
|
|
|
|
[Friend(typeof(ClientInventorySystem))]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class ClientInventoryComponent : InventoryComponent
|
2018-04-25 06:42:35 -05:00
|
|
|
{
|
2021-12-30 22:56:10 +01:00
|
|
|
public Control BottomLeftButtons = default!;
|
|
|
|
|
public Control BottomRightButtons = default!;
|
|
|
|
|
public Control TopQuickButtons = default!;
|
2021-12-08 12:09:43 +01:00
|
|
|
|
2022-01-21 01:38:35 -08:00
|
|
|
public DefaultWindow InventoryWindow = default!;
|
2019-07-20 13:11:42 +02:00
|
|
|
|
2021-12-30 22:56:10 +01:00
|
|
|
public readonly Dictionary<string, List<ItemSlotButton>> SlotButtons = new();
|
2019-12-04 01:23:14 +01:00
|
|
|
|
2021-03-28 08:26:32 +02:00
|
|
|
[ViewVariables]
|
|
|
|
|
[DataField("speciesId")] public string? SpeciesId { get; set; }
|
|
|
|
|
|
2022-03-02 12:29:42 +13:00
|
|
|
/// <summary>
|
|
|
|
|
/// Data about the current layers that have been added to the players sprite due to the items in each equipment slot.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables]
|
|
|
|
|
public readonly Dictionary<string, HashSet<string>> VisualLayerKeys = new();
|
|
|
|
|
|
2021-12-30 22:56:10 +01:00
|
|
|
public bool AttachedToGameHud;
|
2018-04-25 06:42:35 -05:00
|
|
|
}
|
|
|
|
|
}
|