ItemSlotButtonContainer.cs 705 B

12345678910111213141516171819202122232425
  1. using Content.Client.UserInterface.Controls;
  2. namespace Content.Client.UserInterface.Systems.Inventory.Controls;
  3. public sealed class ItemSlotButtonContainer : ItemSlotUIContainer<SlotControl>
  4. {
  5. private readonly InventoryUIController _inventoryController;
  6. private string _slotGroup = "";
  7. public string SlotGroup
  8. {
  9. get => _slotGroup;
  10. set
  11. {
  12. _inventoryController.RemoveSlotGroup(SlotGroup);
  13. _slotGroup = value;
  14. _inventoryController.RegisterSlotGroupContainer(this);
  15. }
  16. }
  17. public ItemSlotButtonContainer()
  18. {
  19. _inventoryController = UserInterfaceManager.GetUIController<InventoryUIController>();
  20. }
  21. }