* Create ItemSlotButton * Refactor inventory buttons Refactor so that KeyBind handling of inventory and hands are the same. * Refactor InventoryInterfaceController to call ItemSlotManager with entities This change allows HandsGUI and InventoryInterfaceController to just call ItemSlotManager.OnButtonPressed with an entity instead of a slot. * Add CooldownCircle to ItemSlotButton This allows Hands and Inventory to have cooldown circles on their ItemSlots. * Refactor HandsGUI to use ItemSlots This allows functionality and GUI to be the same between Inventory and Hands. Added clicking empty hand to switch ActiveHand to clicked hand. * Implement CooldownCircle in ItemSlotManager Reorganize files
33 lines
1.3 KiB
C#
33 lines
1.3 KiB
C#
using Content.Client.Chat;
|
|
using Content.Client.GameTicking;
|
|
using Content.Client.Interfaces;
|
|
using Content.Client.Interfaces.Chat;
|
|
using Content.Client.Interfaces.Parallax;
|
|
using Content.Client.Parallax;
|
|
using Content.Client.Sandbox;
|
|
using Content.Client.UserInterface;
|
|
using Content.Client.Utility;
|
|
using Content.Shared.Interfaces;
|
|
using Robust.Shared.IoC;
|
|
|
|
namespace Content.Client
|
|
{
|
|
internal static class ClientContentIoC
|
|
{
|
|
public static void Register()
|
|
{
|
|
IoCManager.Register<IGameHud, GameHud>();
|
|
IoCManager.Register<IClientNotifyManager, ClientNotifyManager>();
|
|
IoCManager.Register<ISharedNotifyManager, ClientNotifyManager>();
|
|
IoCManager.Register<IClientGameTicker, ClientGameTicker>();
|
|
IoCManager.Register<IParallaxManager, ParallaxManager>();
|
|
IoCManager.Register<IChatManager, ChatManager>();
|
|
IoCManager.Register<IEscapeMenuOwner, EscapeMenuOwner>();
|
|
IoCManager.Register<ISandboxManager, SandboxManager>();
|
|
IoCManager.Register<IModuleManager, ClientModuleManager>();
|
|
IoCManager.Register<IClientPreferencesManager, ClientPreferencesManager>();
|
|
IoCManager.Register<IItemSlotManager, ItemSlotManager>();
|
|
}
|
|
}
|
|
}
|